POST
{
  "command": "SET_PROCESS_THRESHOLD",
  "parameters": {
  	"processName": "New Vacation Request",
    "newTargetDurationInMillis": "NULL | 0"
 }| //Open the debugger console, type the following: | |
| var _alert = window.alert; | |
| window.alert = function () { debugger; _alert.apply(this, arguments); } | |
| //Do not reload the page! | |
| //When the alert will be called, it breaks in the debugger and you have access to the call stack. | |
| //Credits to @ArnaudBuchholz | 
| //Class | |
| function MyClass() { | |
| this.ownMember = 123; | |
| } | |
| //Prototype declaration | |
| MyClass.prototype = { | |
| prototypeMember: 456 | |
| }; | 
| (function () { | |
| 'use strict'; | |
| var proto = String.prototype; | |
| if (undefined === proto.startsWith) { | |
| /** | |
| * Returns true if the string starts with the given one | |
| * | |
| * @param {String} str | 
| *** | |
| less config: | |
| ... | |
| require('@easy-webpack/config-less') | |
| ({ filename: 'styles.css', allChunks: false, sourceMap: false }), | |
| ... | |
| *** | 
| const arrayOfObjects = [ | |
| {name: 'A', level: 5}, | |
| {name: 'B', level: 10}, | |
| {name: 'C', level: 15}, | |
| {name: 'D', level: 20}, | |
| {name: 'E', level: 25}, | |
| {name: '-', level: 0} | |
| ]; | |
| let cloneArrayA = arrayOfObjects.slice(); | 
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; | 
| import React from "react" | |
| export default ({ children }) => | |
| <div style={{ margin: "3rem auto", maxWidth: 600 }}> | |
| {children} | |
| </div> | 
| #NiM - Node.js V8 --inspector Manager (NiM) | |
| #https://chrome.google.com/webstore/detail/nodejs-v8-inspector-manag/gnhhdgbaldcilmgcpfddgdbkhjohddkj?hl=en | |
| node --inspect-brk 01-hello.js |