oh-no-js
v0.0.1-alpha.4
Published
<img src="./oh-no-js.svg" />
Downloads
8
Readme
About
A functions' library that makes JS syntax easier.
Install
npm install oh-no-js
#or
yarn add oh-no-js
Dev/Test
yarn run test
#or
npm run test
Getting started
Import functions you need:
import { objEqual, nuPi } from 'oh-no-js';
Use them. For more information open documentation.
const obj1 = { name: { first: 'Jesse', second: 'Pinkman' } };
const obj2 = { name: { first: 'Jesse', second: 'Pinkman' } };
const areEqual = objEqual(obj1, obj2); // expected true
const obj = {};
nuPi(obj, 'prop1.prop2').prop3 = 'Hello!';
// Expected:
// obj = { prop1: { prop2: { prop3: 'Hello!' } } };