var clone   = require('../lang/clone')
var slice   = require('../array/slice')
var forEach = require('../array/forEach')

function omit (obj, toOmit) {
  toOmit = Array.isArray(toOmit)
    ? toOmit
    : slice(arguments, 1)

  var output = clone(obj)

  forEach(toOmit, function (omit) {
    delete output[omit]
  })

  return output
}

module.exports = omit

@@ -1,14 +1,14 @@
 var 
-clone 
+extend
   = 
@@ -23,18 +23,21 @@
 '../
-lang/clone
+object/extend
 ')%0Av
@@ -78,50 +78,8 @@
 ce')
-%0Avar forEach = require('../array/forEach')
 %0A%0Afu
@@ -198,52 +198,82 @@
 t = 
-clone(obj)%0A%0A  forEach(toOmit, function (omit
+extend(%7B%7D, obj)%0A  var i = -1%0A  var len = toOmit.length%0A%0A  while (++i %3C len
 ) %7B%0A
@@ -294,18 +294,22 @@
 put%5B
-omit
+toOmit%5Bi%5D
 %5D%0A  %7D
-)
 %0A%0A  

update object/omit -- use object/extend