1.2.1 • Published 6 years ago

nebjs-util v1.2.1

Weekly downloads
23
License
MIT
Repository
github
Last release
6 years ago

nebjs-util: A Javascript Common Development Library

A Javascript Common Development Library For NebJS/Web/NodeJS, For a complete explanation, go to github :nebjs-util

npm npm downloads GitHub release GitHub commits npm license

Install

npm install nebjs-util

Getting started

const util = require('nebjs-util');
util.object.clear({a: 123, b: 456});
util.object.copy({}, {a: 123, b: 456});
util.string.trim('  abc  ');
util.array.copy(['a'], 'a');
util.array.findItem(["a", "b", {"a": "b", "b": "c"}], {'b': 'c', 'a': 'b'});
util.array.uniqueItem(['a', 'b', 'c', {'a': 'b', 'b': 'c'}, {'b': 'c', 'a': 'b'}]);
util.date.toFormatString(new Date(), "yyyy年MM月dd日");
util.date.fromFormatString('2018年07月18日 16:36:49', 'yyyy年MM月dd日 HH:mm:ss');
util.common.clone({a: {b: "c"}, b: ["a"]});
util.common.equal(['abc'], ['abc']);

Contents && Document

Object && Namespace

util.object

The util.object has methods to manipulating Object type objects

util.string

The util.string has methods to manipulate String strings

util.array

The util.array has methods to manipulate Array objects

util.date

The util.date has methods to manipulate Date objects

util.common

The util.common has common methods

1.2.1

6 years ago

1.2.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago