This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Omits keys from object functional style. | |
* | |
* @param {object} obj – object to omit keys from. | |
* @param {string} ...keys – array of string keys to extract from object. | |
* @return {object} – new `obj` without `keys`. | |
* | |
* Example: | |
* omit({ a: 1, b: 2, c: 3, x: 4, y: 5 }, 'a', 'x') returns { b: 2, c: 3, y: 5 } | |
* |