Members
(constant) isArray
is Array or not
(constant) isFunction
is Function or not
Methods
fromNow(endTime) → {string}
Parameters:
| Name | Type | Description |
|---|---|---|
endTime |
date |
Returns:
- Type
- string
pluckMap(map, key, valueKey) → {*}
Parameters:
| Name | Type | Description |
|---|---|---|
map |
map | |
key |
string | |
valueKey |
string |
Returns:
- Type
- *
setTick(callback, duration, firstopt) → {string}
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
callback |
function | |||
duration |
number | |||
first |
boolean |
<optional> |
true
|
Returns:
id
- Type
- string
toMap(collection, key) → {map}
turn a array to map
Parameters:
| Name | Type | Description |
|---|---|---|
collection |
array | |
key |
string |
Returns:
- Type
- map