I'm trying to remove the first 13 characters of a string with this code:
requestToken = requestToken.substring(13);
However, I'm getting "has no method substring
" error with NodeJS, the code above that mostly recommended in the Javascript forums does not work with NodeJS?
it seems like requestToken may not be a string.
Try
requestToken = '' + requestToken;
and then requestToken.substring(13);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With