This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://www.reddit.com/r/node/comments/843hvk/17_javascript_nodejs_performance_coding_tips_to/ | |
| var arr = []; | |
| arr[0] = 20; | |
| arr[10] = undefined; | |
| arr[434] = 200; | |
| var noop = () => {}; | |
| console.time("for"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Guid Class | |
| * | |
| * @export | |
| * @class Guid | |
| * @see {@link https://gist.github.com/jed/982883} | |
| */ | |
| export class Guid { | |
| private value: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| console.log("maxWidth test running"); | |
| // in calling HTML - ensure that a div with id jsTest is available | |
| let maxWidthDiv = document.querySelector("#jsTest"); | |
| let maxWidthVal = "1337px"; | |
| if(Number.MAX_SAFE_INTEGER) { | |
| maxWidthVal = Number.MAX_SAFE_INTEGER.toString() + "px"; | |
| } else { |