Extracts the first length characters from a string or number.
length
The target string or value.
The number of characters to extract.
A string containing the first length characters of the target value.
console.log(PUtilsString.subStart('this is a string', 6)) // 'this i'console.log(PUtilsString.subStart(123456, 4)) // '1234' Copy
console.log(PUtilsString.subStart('this is a string', 6)) // 'this i'console.log(PUtilsString.subStart(123456, 4)) // '1234'
Extracts the first
length
characters from a string or number.