In Javascript the primitive types have native functions, as an object of type Number has a function toString() :
(1).toString(); // "1"
And an array has includes() :
[1, 3, 4].includes(1); // true
[1, 3, 4].includes(10)...
asked by
28.01.2018 / 22:49