i
A (very) simple library to expose only clones of referenced objects in function arguments.
Installation
npm install i-
Usage
Require
var i = ;// or simply;
Example
var a = a: 1 b: 2 ; var transform = { objb = 3; return obj;}i; // or transform = ; // or transform = ; // or { objb = 3; return obj;}i; console;console;console;
test
npm test
Notes
I still have no idea if it is a stupid or good idea.