Raf id created by raf
.
Convert number to money with thousand mark.
Money number.
Decimal digits.
Money with thousand mark.
Use RAF to do somthing. When there's no left frames, exec callback function.
Callback when animation is over.
Frames before fn executing.
Return id of this RAF.
Generator a random number in [0, range].
Max number of random number, round down.
Random integer.
Generaotr random string.
Length of string.
Random string.
Generaotr random string with dividers.
Format of string.
Divider of string chunks.
Random String with dividers.
Get function with debounce.
Function need to be debounce.
Delay time before excuting.
Function with debounce.
Get function with debounce.
Function with debounce.
Let element fade in.
DOM element.
Options.
Let dom element fade out.
Dom element.
Options.
Convert file to base64 by FileReader.
File object.
Promise of result.
Get element via string or HTMLElement.
String or HTMLElement.
Where to find, default is document
.
HTMLElement or null if not found or fail.
Checks if value
is an array.
The value to check.
true
if the argument appears to be an array.
Checks if value
is a BigInt
.
The value to check.
true
if the argument appears to be a BigInt
.
Checks if value
is a boolean.
The value to check.
true
if value is a boolean, otherwise false
.
Checks if value
is classified as a Function object.
The value to check.
true
if value is a function, otherwise false
.
Check if value is a HTML element.
The value to check.
True if it is, false if it isn't.
Check if value is a HTML element or document
.
The value to check.
true
if it is, otherwise false
.
Checks if value
is null
.
The value to check.
true
if the argument appears to be null
.
Checks if value
is a number.
The value to check.
true
if value is a number, otherwise false
.
Checks if value
is a object.
The value to check.
true
if the argument appears to be a object.
Checks if value
is a plain object.
The value to check.
true
if the argument appears to be a plain object.
Checks if value
is a string.
The value to check.
true
if value is a string, otherwise false
.
Check if value is a string or HTMLELement.
Target value to check.
True if it is string or HTMLELement, false otherwise.
Checks if value
is a symbol.
The value to check.
true
if the argument appears to be a symbol.
Checks if value
is undefined
.
The value to check.
true
if the argument appears to be undefined
.
Check if value
is window
.
The value to check.
true
if it's window
, otherwise return false
.
Get function with throttle.
Function need to be throttle.
Interval time before each excuting.
Function with throttle.
Get function with throttle.
Function with throttle.
Use timing function to calculate value in progress.
Current time.
Duration.
Start value.
Target value.
Timing function.
Current value.
Generated using TypeDoc
Cancel raf by id.