
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@degjs/object-utils
Advanced tools
A utility library for working with JavaScript objects.
objectUtils is an ES6 module. Consequently, you'll need an ES6 transpiler (Babel is a nice one) as part of your Javascript workflow.
If you're already using NPM for your project, you can install objectUtils with the following command:
$ npm install @degjs/object-utils
import { ensureArray } from "@degjs/object-utils";
let guaranteedArray = ensureArray(possibleArray);
import * as objectUtils from "@degjs/object-utils";
let guaranteedArray = objectUtils.ensureArray(possibleArray);
The ensureArray method returns a guaranteed array, regardless of the paramater passed into it.
Type: Array
or String
The potential array to test.
The assignDeep method copies the values of a source object to a target object. Unlike Object.assign, assignDeep does a proper deep clone of nested objects.
Type: Object
The source object to copy.
Type: Object
The target object to copy to.
objectUtils depends on the following browser APIs:
To support legacy browsers, you'll need to include polyfills for the above APIs.
FAQs
A utility library for working with JavaScript objects.
We found that @degjs/object-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.