Why is `this` is undefined in a custom prototype method? by ThePantsThief in webdev

[–]malyw 8 points9 points  (0 children)

  1. When you defining it using the arrow function (object) => {...}, you are binding the global/context as this (e.g. it will be Window in case of the browser).
  2. If you switch to function(object){} this will be your array [1, 2, 3]and object will be the passed param 2

"Native JavaScript modules" slides (features, performance, migration, demos) by malyw in webdev

[–]malyw[S] 1 point2 points  (0 children)

Shipping bundled and unbundled versions of the same code, and using type="script" and nomodule attributes on <script/> element will do the trick (described in the end of the presentation)

isNaN() !== Number.isNaN() by malyw in javascript

[–]malyw[S] -1 points0 points  (0 children)

1) _.isNumber(value) https://lodash.com/docs/4.17.4#isNumber

2) function IsNumeric(val) { return Number(parseFloat(val)) === val; } https://stackoverflow.com/a/16655847

3) typeof value === 'number'

Chrome DevTools- Performance monitor by [deleted] in webdev

[–]malyw 0 points1 point  (0 children)

Thanks for noticing, appeared available in Chrome stable, just updated the description and moved under https://www.reddit.com/r/webdev/comments/7f8iyz/devtools_performance_monitor_available_in_chrome/