@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

/@lgd-utils/utils/

    Package Sidebar

    Install

    npm i @lgd-utils/utils

    Weekly Downloads

    0

    Version

    0.0.16

    License

    MIT

    Unpacked Size

    328 kB

    Total Files

    11

    Last publish

    Collaborators

    • lgd.huafeeng