Socket
Book a DemoInstallSign in
Socket

@kamicane/object

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kamicane/object

object utils

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

object

[Object: null prototype] utilities

require

const object = require('@kamicane/object')

create

object()
object(null)
object({ a: 1, b: 2, c: 3 })

assign

object({ a: 1, b: 2 }, { c: 3 }, { a: 2 })

hasOwn

object.hasOwn({ a: 1 }, 'a')

proper iterators with generator functions

;[...object.keys({ a: 1, b: 2, c: 3 })]
;[...object.values({ a: 1, b: 2, c: 3 })]
;[...object.entries({ a: 1, b: 2, c: 3 })]

While it is easy to imagine that all iterators could be expressed as arrays, this is not true. Arrays must be allocated in their entirety, but iterators are consumed only as necessary and thus can express sequences of unlimited size. - MDN

Keywords

object

FAQs

Package last updated on 01 Jan 2020

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