New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

asobj

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asobj

Object utility

latest
Source
npmnpm
Version
3.0.1
Version published
Weekly downloads
308
-57.22%
Maintainers
1
Weekly downloads
 
Created
Source

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.

  • a-labo

Keywords

object

FAQs

Package last updated on 29 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts