Sometimes, JavaScript objects come with a lot of keys and you only need a few of them. Other times, you might want to remove certain keys, instead. Whatever the case, we've got you covered with this snippet collection.
Picks the key-value pairs corresponding to the given keys from an object.
JavaScript, Object · Oct 18, 2020
Omits the key-value pairs corresponding to the given keys from an object.
JavaScript, Object · Oct 21, 2020
Creates an object composed of the properties the given function returns truthy for.
JavaScript, Object · Oct 22, 2020
Creates an object composed of the properties the given function returns falsy for.
JavaScript, Object · Oct 21, 2020