is-thirteen icon indicating copy to clipboard operation
is-thirteen copied to clipboard

Need support for isSixteen

Open phenax opened this issue 6 years ago • 5 comments

Need support for isSixteen

phenax avatar Mar 29 '18 09:03 phenax

is(x).minus(3).thirteen()

damianc avatar Mar 30 '18 11:03 damianc

@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.

scf4 avatar Apr 05 '18 21:04 scf4

@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 ?

isu17 avatar Apr 21 '18 14:04 isu17

This would obviously break Single Responsibility principle!

udivankin avatar Sep 30 '19 21:09 udivankin

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.

phenax avatar Oct 01 '19 03:10 phenax