Lodash: Add `_.drop` as the opposite of `_.pick`.

Created on 18 Jul 2012  路  2Comments  路  Source: lodash/lodash

Add _.drop to create a shallow clone of object excluding the specified properties. Property names may be specified as individual arguments or as arrays of property names.

Patched here.

enhancement

Most helpful comment

This is no longer how drop behaves, is there something in lodash now that does this same thing?

edit:
nvm. It's _.omit

All 2 comments

This is no longer how drop behaves, is there something in lodash now that does this same thing?

edit:
nvm. It's _.omit

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thoraage picture thoraage  路  3Comments

SameerSiddiqui picture SameerSiddiqui  路  3Comments

erykpiast picture erykpiast  路  3Comments

gajus picture gajus  路  3Comments

satrong picture satrong  路  3Comments