asobj
Object utility
Last updated 4 months ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install asobj 
SYNC missed versions from official npm registry.

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

Signature Description
.assign() -> Object Assign object
.cleanup(values, options, options.delNull, options.delEmptyString) -> Object Delete undefined properties.
.clone(src, options, options.without) -> Object Clone a object
.deepEqual(obj1, obj2) -> boolean Compare object deeply
.dig(src, keys) -> * Dig object props
.keyFor(, ) -> string Get key for value
.retrieve(obj, name) -> * Retrieve attribute value from object
.shallowEqual(obj1, obj2) -> boolean Performs equality by iterating through keys on an object and returning false

License

This software is released under the MIT License.

Links

Current Tags

  • 3.0.0                                ...           latest (4 months ago)

23 Versions

  • 3.0.0                                ...           4 months ago
  • 2.1.4                                ...           5 months ago
  • 2.1.3                                ...           5 months ago
  • 2.1.2                                ...           6 months ago
  • 2.1.1                                ...           6 months ago
  • 2.1.0                                ...           9 months ago
  • 2.0.10                                ...           a year ago
  • 2.0.9                                ...           a year ago
  • 2.0.8                                ...           a year ago
  • 2.0.5                                ...           a year ago
  • 2.0.4                                ...           a year ago
  • 2.0.3                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.5.0                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |