Sha256: 9af65e3d1bc44fe5a128a470a7809bfdbab7bc917040060fff89a14c15073ff3
Contents?: true
Size: 1.89 KB
Versions: 10
Compression:
Stored size: 1.89 KB
Contents
# {%= name %} {%= badge("fury") %} > {%= description %} ## Install {%= include("install") %} ## Run tests ```bash npm test ``` ## Usage ```js var omit = require('{%= name %}'); ``` Pass a string `key` to omit: ```js omit({a: 'a', b: 'b', c: 'c'}, 'a') //=> { b: 'b', c: 'c' } ``` Pass an array of `keys` to omit: ```js omit({a: 'a', b: 'b', c: 'c'}, ['a', 'c']) //=> { b: 'b' } ``` Returns the object if no keys are passed: ```js omit({a: 'a', b: 'b', c: 'c'}) //=> {a: 'a', b: 'b', c: 'c'} ``` Returns an empty object if no value is passed. ```js omit() //=> {} ``` ## Author {%= include("author") %} ### Other javascript/node.js utils Other projects that I maintain: - [arr](https://github.com/jonschlinkert/arr) - [arr-diff](https://github.com/jonschlinkert/arr-diff) - [array-last](https://github.com/jonschlinkert/array-last) - [array-slice](https://github.com/jonschlinkert/array-slice) - [array-sum](https://github.com/jonschlinkert/array-sum) - [arrayify-compact](https://github.com/jonschlinkert/arrayify-compact) - [compact-object](https://github.com/jonschlinkert/compact-object) - [delete](https://github.com/jonschlinkert/delete) - [for-in](https://github.com/jonschlinkert/for-in) - [for-own](https://github.com/jonschlinkert/for-own) - [has-any](https://github.com/jonschlinkert/has-any) - [has-value](https://github.com/jonschlinkert/has-value) - [is-number](https://github.com/jonschlinkert/is-number) - [is-plain-object](https://github.com/jonschlinkert/is-plain-object) - [mixin-deep](https://github.com/jonschlinkert/mixin-deep) - [mixin-object](https://github.com/jonschlinkert/mixin-object) - [object-length](https://github.com/jonschlinkert/object-length) - [omit-empty](https://github.com/jonschlinkert/omit-empty) - [reduce-object](https://github.com/jonschlinkert/reduce-object) ## License {%= copyright() %} {%= license() %} *** {%= include("footer") %}
Version data entries
10 entries across 10 versions & 1 rubygems