is-thirteen
is-thirteen copied to clipboard
Need support for isSixteen
Need support for isSixteen
is(x).minus(3).thirteen()
@damianc I guess that works but I feel like it's not what this package is for.
@phenax from the title this repo sounds like it does what you need, although I haven't read the README or anything.
@damianc thank you, this solves my problems with sixteen check 🤩 @scf4 do you suggest that is-thirteen might throw errors down the line in production if I use it to check different than 13 ?
This would obviously break Single Responsibility principle!
I guess now I just need a library that checks if a given function checks if my number is 13.
isis13(n => is(n).thirteen()) // >> true
isis13(n => n === 12) // >> false
The only problem here is the name of the function.