ntils
- Version 5.2.4
- Published
- 67 kB
- No dependencies
- MIT license
Install
npm i ntilsyarn add ntilspnpm add ntilsOverview
一个 Node & Browser 工具函数集
Index
Variables
Functions
- clone()
- copy()
- create()
- deepEqual()
- each()
- escapeRegExp()
- filterHTML()
- final()
- firstUpper()
- formatDate()
- fromTo()
- getByPath()
- getFunctionArgumentNames()
- getPrototypeOf()
- getType()
- isArray()
- isAsyncFunction()
- isBoolean()
- isDate()
- isElement()
- isFunction()
- isFunctionString()
- isGeneratorFunction()
- isNull()
- isNumber()
- isObject()
- isRegExp()
- isString()
- isText()
- isTypedArray()
- mix()
- newGuid()
- noop()
- parseHTML()
- replace()
- setByPath()
- setPrototypeOf()
- short()
- toArray()
- toCamelCase()
- toDate()
- toFunction()
- toSplitCase()
- toString()
Variables
variable FUNC_REGEXP
const FUNC_REGEXP: RegExp;Functions
function clone
clone: (src: any, ignores?: string[]) => any;function copy
copy: (src: any, dst?: any, ignores?: string[]) => any;function create
create: (proto: any) => any;function deepEqual
deepEqual: (a: any, b: any) => boolean;function each
each: ( list: any, handler: (key: string | number, value: any) => any, scope: any) => any;function escapeRegExp
escapeRegExp: (str: string) => string;function filterHTML
filterHTML: (html: string) => string;function final
final: (obj: any, name: string, value: any) => void;function firstUpper
firstUpper: (str: string) => string;function formatDate
formatDate: ( value: Date | number | string, format: string, options?: { utc?: boolean; translate?: Record<string, string> }) => string;function fromTo
fromTo: ( from: number, to: number, handler: (value?: number) => void, step?: number) => void;function getByPath
getByPath: ( obj: any, path: string | string[], filter?: (value?: any, key?: string, obj?: any) => boolean) => any;function getFunctionArgumentNames
getFunctionArgumentNames: (fn: Function) => string[];function getPrototypeOf
getPrototypeOf: (obj: any) => any;function getType
getType: (value: any) => string;function isArray
isArray: (value: any) => value is any[];function isAsyncFunction
isAsyncFunction: (value: any) => value is Function;function isBoolean
isBoolean: (value: any) => value is boolean;function isDate
isDate: (value: any) => value is Date;function isElement
isElement: (value: any) => value is Element;function isFunction
isFunction: (value: any) => value is Function;function isFunctionString
isFunctionString: (str: string) => boolean;function isGeneratorFunction
isGeneratorFunction: (value: any) => value is GeneratorFunction;function isNull
isNull: (value: any) => value is null;function isNumber
isNumber: (value: any) => value is number;function isObject
isObject: (value: any) => value is object;function isRegExp
isRegExp: (value: any) => value is RegExp;function isString
isString: (value: any) => value is string;function isText
isText: (value: any) => value is Text;function isTypedArray
isTypedArray: (value: any) => boolean;function mix
mix: ( dst: any, src: any, ignores?: string[], mode?: 0 | 1 | 2 | 3 | 4, ignoreNull?: boolean) => any;function newGuid
newGuid: () => string;function noop
noop: () => void;function parseHTML
parseHTML: (str: string) => ChildNode[];function replace
replace: (str: string, from: string, to: string) => string;function setByPath
setByPath: (obj: any, path: string | string[], value: any) => void;function setPrototypeOf
setPrototypeOf: (obj: any, proto: any) => any;function short
short: (str: string, maxLength: number) => string;function toArray
toArray: <T = any>(array: any) => T[];function toCamelCase
toCamelCase: (str: string, mode: 1 | 0) => string;function toDate
toDate: (value: any) => Date;function toFunction
toFunction: (str: string) => Function;function toSplitCase
toSplitCase: (str: string) => string;function toString
toString: (value: any) => any;Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (11)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/ntils.
- Markdown[](https://www.jsdocs.io/package/ntils)
- HTML<a href="https://www.jsdocs.io/package/ntils"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3850 ms. - Missing or incorrect documentation? Open an issue for this package.
