addyosmani / timing.js

Navigation Timing API measurement helpers
1.5k stars 114 forks source link

Fixed getTimes and printTable full data output, closes #20, closes #14 #24

Closed Elijen closed 8 years ago

Elijen commented 8 years ago

timing.hasOwnProperty(k) always returns false. This made impossible to print full data output (#20, #14).

Checking if the value is numeric should be good enough. isNumeric implementation is "inspired" by: http://stackoverflow.com/questions/18082/validate-decimal-numbers-in-javascript-isnumeric