@lgd-utils/utils
TypeScript icon, indicating that this package has built-in type declarations

0.0.16 • Public • Published

@lgd-utils/utils

Bundle size MIT NPM downloads NPM version lodash npm styled with prettier

A front-end utils tool

Usage

import utils from '@lgd-utils/utils';

utils.assertValue(1, 1); // true
utils.assertValue('str', [3, null, /^\w+$/]); // true

utils.normalizeValue(2, 'String'); // '2'
utils.normalizeValue('3kb', 'Number', 4); // 4

utils.undefinedTo(1, 2); // 1
utils.undefinedTo(undefined, 4); // 4

utils.partialEq('true')(true); // false
utils.partialEq('false')('false'); // true

Contribute

Documentation

Related

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.162latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.162
0.0.150
0.0.140
0.0.130
0.0.122
0.0.110
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.41
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i @lgd-utils/utils

Weekly Downloads

5

Version

0.0.16

License

MIT

Unpacked Size

328 kB

Total Files

11

Last publish

Collaborators

  • lgd.huafeeng