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

@@ -1065,6 +1065,18 @@
/*--------------------------------------------------------------------------*/
suites.push(
Benchmark.Suite('`_.omit`')
.add('Lo-Dash', '\
lodash.omit(object, "key6", "key13")'
)
.add('Underscore', '\
_.omit(object, "key6", "key13")'
)
);
/*--------------------------------------------------------------------------*/
suites.push(
Benchmark.Suite('`_.pick`')
.add('Lo-Dash', '\