@undercut/utils v0.6.1
@undercut/utils
Generic JavaScript utilities for objects/promises/comparison/etc.
The package is a part of the larger Undercut project. Please visit undercut.js.org for overview and documentation.
Usage
import { isNumberValue } from "@undercut/utils";
console.log(isNumberValue(123)); // true
console.log(isNumberValue("hello")); // false
console.log(isNumberValue(NaN)); // falseInstallation
@undercut/utils carries stable ES Next code in the ESM format. It is very convenient for apps using Webpack/Babel/etc, and will help to avoid double compilation and deoptimization. Only finished proposals (Stage 4) may be used in its codebase. The code is universal and may be used in Node/Browser/microwave.
Don't forget check that /node_modules/@undercut/ isn't excluded from compilation and core-js@3 polyfill or analogue is in place.
npm install @undercut/utils
# or
yarn add @undercut/utilsUpdating
If you're upgrading Undercut to a newer version, please update @babel/preset-env and core-js packages to the latest versions too.
License
Licensed under the MIT License, see LICENSE for more information.