Open MarketingPip opened 2 months ago
Abbrev expects strings, not an array. (...args)
means you can pass it as many strings as you want in subsequent parameters, i.e.
abbrev('foo', 'bar', 'baz', ...)
@wraithgar - then my issue still stands... try with a single string!
Yep you're right, didn't read close enough.
> require('.')('asdf')
Uncaught TypeError: list.sort is not a function
at abbrev (/Users/wraithgar/Development/npm/abbrev-js/branches/main/lib/index.js:11:15)
> require('.')('asdf', 'asdr')
{ asdf: 'asdf', asdr: 'asdr' }
@wraithgar - tbh I didn't even realize this was a npm based package but lol!
Wish I could commit but I know the rules! My fix about should work. Maybe add validation is string / or array of strings etc...?
Wish I could commit but I know the rules!
You can submit PRs from a fork, that's how all external contributions are made to npm. You'd just need to add a test for that case.
Is there an existing issue for this?
Current Behavior
throws error in :