medikoo / es5-ext

ECMAScript extensions (with respect to upcoming ECMAScript features)
ISC License
168 stars 81 forks source link

Consider move of some functions nested in `Object` namespace to global scope #62

Open medikoo opened 6 years ago

medikoo commented 6 years ago

It should apply to those that relate to values in general (not necessary objects), e.g. string, number functions definitely.

e.g. ensureString, ensureNaturalNumber etc.

That way we would map native API, in sense that e.g. global isNaN accepts any non numeric value, while Number.isNaN confirms strictly on type of number NaN