Constants and Help functions.
- Source:
- Version:
- 1.0
- Copyright:
- Copyright (c) 2017, Grigory Vasilyev
- License:
- Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0
Members
(static) formatInt
- Source:
Export helpers
(inner) remRegexp
- Source:
Regexp for rem value.
(inner) UNIT
- Source:
Unit List
Methods
(inner) cmpStr(str, refStr)
- Source:
Compare input string with reference string.
Parameters:
| Name | Type | Description |
|---|---|---|
str |
input string |
|
refStr |
reference string |
(inner) extend(object1, object2, ret)
- Source:
Copy Values from object 2 to object 1.
Parameters:
| Name | Type | Description |
|---|---|---|
object1 |
||
object2 |
||
ret |
return object1 true or false |
Returns:
object1
(inner) formatInt(value)
- Source:
Format Number to Int.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
number | input value. |
(inner) formatValue(value)
- Source:
Fast Format Float Values.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
number | input value. |
(inner) getUnit(value)
- Source:
Return Unit to value.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
string | input value. |
(inner) hasNumber(value)
- Source:
Check string contains number.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
input string. |
(inner) isHas(value, string)
- Source:
Check value contains string;
Parameters:
| Name | Type | Description |
|---|---|---|
value |
string | input value. |
string |
(inner) scmpStr(str, refStr)
- Source:
Case sensitive compare strings
Parameters:
| Name | Type | Description |
|---|---|---|
str |
input string |
|
refStr |
reference string |
(inner) toCamelCase(value)
- Source:
To Camel Case string.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
string | input string. |
(inner) toKebabCase(value)
- Source:
To Kebab Case string.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
string | input string. |