key-difference

1.0.0 • Public • Published

key-difference Build Status

Create an array of the keys present in the first input object but not additional ones

Install

$ npm install --save key-difference

Usage

var keyDifference = require('key-difference')
 
keyDifference({a: 1, b: 2, c: 3}, {a: 1}, {b: 2})
//=> ['c']

API

keyDifference(input, others...) -> array[string]

input

Required
Type: object

The source object.

others

Required
Type: object

A variadic set of objects.

License

MIT © Ben Drucker

/key-difference/

    Package Sidebar

    Install

    npm i key-difference

    Weekly Downloads

    10

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • bendrucker