Add _.omit as an alias of _.drop.

Former-commit-id: 630b0897bb49161fbc3b51a38c816b4bce548fba
This commit is contained in:
John-David Dalton
2012-08-24 08:27:38 -07:00
parent 48c13c990f
commit 21eda2a1a3
7 changed files with 107 additions and 89 deletions

View File

@@ -1105,6 +1105,7 @@
*
* @static
* @memberOf _
* @alias omit
* @category Objects
* @param {Object} object The source object.
* @param {Object} [prop1, prop2, ...] The properties to drop.
@@ -4169,6 +4170,7 @@
lodash.include = contains;
lodash.inject = reduce;
lodash.methods = functions;
lodash.omit = drop;
lodash.select = filter;
lodash.tail = rest;
lodash.take = first;