3.0.1 • Published 5 years ago

asobj v3.0.1

Weekly downloads
516
License
MIT
Repository
github
Last release
5 years ago

asobj

Build Status Code Climate Code Coverage npm Version JS Standard

Object utility

Installation

$ npm install asobj --save

Usage

'use strict'

const { clone } = require('asobj')

{
  let obj = clone({
    foo: 'bar',
    baz: 'quz'
  }, {
    without: 'baz'
  })
  console.log(obj) // -> { foo: 'bar' }
}

Functions

Available functions

SignatureDescription
.assign() -> ObjectAssign object
.cleanup(values, options, options.delNull, options.delEmptyString) -> ObjectDelete undefined properties.
.clone(src, options, options.without) -> ObjectClone a object
.deepEqual(obj1, obj2) -> booleanCompare object deeply
.dig(src, keys) -> *Dig object props
.keyFor(, ) -> stringGet key for value
.retrieve(obj, name) -> *Retrieve attribute value from object
.shallowEqual(obj1, obj2) -> booleanPerforms equality by iterating through keys on an object and returning false

License

This software is released under the MIT License.

Links

3.0.1

5 years ago

3.0.0

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.10

6 years ago

2.0.9

6 years ago

2.0.8

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago