Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Advice on JSX Conditionals. Parent comment
const IsNumber = (value) => Boolean(value);
!IsNumber(n)
I’m not a fan of using the return-type as the function name, especially when you are really just trying to find out if something is a number.
There are no comments on this comment yet.
const IsNumber = (value) => Boolean(value);
!IsNumber(n)
I’m not a fan of using the return-type as the function name, especially when you are really just trying to find out if something is a number.