1.1.0 • Published 10 months ago
@taufik-nurrohman/to v1.1.0
Converter Utility
Convert to X from Y.
CommonJS
const {toNumber} = require('@taufik-nurrohman/to');
console.log(toNumber('1'));
ECMAScript
import {toNumber} from '@taufik-nurrohman/to';
console.log(toNumber('1'));
Methods
toArray(any)
toArrayKey(value, array)
toArrayValue(key, array)
toBoolean(any)
toCaseCamel(string)
toCaseKebab(string, separator = '-')
toCaseLower(string)
toCasePascal(string)
toCaseUpper(string)
toCeil(number)
toCount(array|string)
toEdge(number, min, max)
toFix(number)
toFloor(number)
toHTML(string, restoreQuote = true)
toJSON(any)
toNumber(string, base = 10)
toObjectCount(object)
toObjectEntries(object)
toObjectKey(value, object)
toObjectKeys(object)
toObjectValue(key, object)
toObjectValues(object)
toQuery(object)
toRound(number)
toString(any)
toString(number, base = 10)
toURL(string)
toValue(any)
1.0.2
10 months ago
1.1.0
10 months ago
1.0.1
1 year ago
1.0.0
2 years ago
0.0.18
3 years ago
0.0.17
3 years ago
0.0.16
3 years ago
0.0.15
3 years ago
0.0.14
3 years ago
0.0.12
3 years ago
0.0.13
3 years ago
0.0.11
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago