Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

object-lib

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-lib - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

lib/core/align.js

2

package.json
{
"name": "object-lib",
"version": "1.0.0",
"version": "1.1.0",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "repository": {

@@ -16,6 +16,16 @@ # object-lib

## Functions
## Basic Setup
### align(obj: Object, ref: Object)
Align the ordering of one object recursively to a reference object.
...
_Example:_
<!-- eslint-disable no-undef -->
```js
const obj = { k1: 1, k2: 2 };
const ref = { k2: null, k1: null };
align(obj, ref);
// obj => { k2: 1, k1: 2 }
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc