npm.io
2.0.4 • Published 1 year ago

itsa-jsext

Licence
BSD-3-Clause
Version
2.0.4
Deps
1
Size
142 kB
Vulns
0
Weekly
0

Build Status

browser support

Extensions to native javascript-objects, all within the "itsa_" namespace

How to use:

// ES5:
require("itsa-jsext");

// ES6:
import "itsa-jsext";

API

####example

"use strict";

import "itsa-jsext";

const obj1 = {
    par1: 10,
    par2: [
        'hi',
        {
            par2_1: 1,
            par2_2: 2
        }
    ];
    par3: {
        par3_1: 1,
        par3_2: 2
    }
};

const obj2 = obj1.itsa_deepClone(); // deepcloning obj1 into obj2

Keywords