Extracts the last length characters from a string or number.
length
The target string or value.
A string containing the last length characters of the target value.
console.log(PUtilsString.subEnd('this is a string', 6)) // 'string'console.log(PUtilsString.subEnd(123456, 4)) // '3456' Copy
console.log(PUtilsString.subEnd('this is a string', 6)) // 'string'console.log(PUtilsString.subEnd(123456, 4)) // '3456'
Extracts the last
length
characters from a string or number.