top | item 40340449

(no title)

r-spaghetti | 1 year ago

It even depends on is-odd (375K weekly downloads). The script kiddies have taken over.

discuss

order

jjcm|1 year ago

Which in itself depends on is-number (66M weekly downloads).

The beautiful journey seems to end there.

https://www.npmjs.com/package/is-number

Someone|1 year ago

Combining that with https://www.npmjs.com/package/is-string, you can have a JavaScript valid x for which

  isNumber(x) && isString(x)
isNumber is better named “can-be-used-as-a-number”.

Also, I don’t know JavaScript well enough, but https://www.npmjs.com/package/isnumber is different code from https://www.npmjs.com/package/is-number, but does it have different semantics?

(https://www.npmjs.com/package/lodash.isnumber is different, I think. It (rightfully, IMHO) thinks ∞ and NaN are numbers)

jspash|1 year ago

Which used to depend on the legendary `is-is` package. Apparently the maintainer is a certain B. Clinton.

dagw|1 year ago

Wow! there are almost 2500 packages on npm that depends on is-number. That's insane.

warpech|1 year ago

Hopefully is-odd does not depend on is-even

joegibbs|1 year ago

It actually depends on "is-number", which is a very useful package containing

   num => typeof num === "number"
No joke.