1.3.8 • Published 8 days ago
@dramaorg/reprehenderit-pariatur-porro v1.3.8
@dramaorg/reprehenderit-pariatur-porro
Install
Do not use it if you can use maps.
yarn add @dramaorg/reprehenderit-pariatur-porro
or if npm is package manager of your choice
npm install @dramaorg/reprehenderit-pariatur-porro --save
Usage
I want to create a new object
import box from '@dramaorg/reprehenderit-pariatur-porro';
const trackedObj = box({});
I have an existing object
import box from '@dramaorg/reprehenderit-pariatur-porro';
const myObj = {
a: true,
b: void 0,
};
const trackedObj = box(myObj);
// alternatively if you want to provide a custom orer
const trackedReversedObj = box(myObj, ['b', 'a']);