1.0.6 • Published 9 months ago

@jswork/protofill v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

protofill

Enhance native JavaScript prototypes with custom methods safely.

version license size download

installation

npm install @jswork/protofill

# add types for `src/global.d.ts`
import '@jswork/protofill/dist/types';

usage

// just oneline
import '@jswork/protofill'

// ------ Array ---- 
// const arr = [1,2,3]
// set first: arr.first = 'a';
// get first: arr.first;

// set last: arr.last = 'a';
// get last: arr.last;


// ------ Date ----
// const date = new Date();
// format: date.format('YYYY-MM-DD HH:mm:ss');

license

Code released under the MIT license.

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago