I would like to create an npm package for common functions that I use and are not part of javascript , but I dont know how can I create them to use them as methods, let me explain myself
For example I want to use a function like
let reverseString = (string) => string.split('').reverse().join('');
For sure I could use it like reverseString(''somethinghere')
But I would like to use it like 'somethinghere'.reverseString()
Thank you so much in advance.....