Where you should store a password salt
string?
The difference between a Mixin
and Multiple Inheritance
const items = [1, 2, 3, 4, 5]; | |
let promise = Promise.resolve(); | |
for (let i = 0; i < items.length; i++) { | |
promise = promise.then(() => { | |
console.log(items[i]); | |
return new Promise((resolve) => { | |
setTimeout(resolve, 500); | |
}); | |
}); |
mapToJson = (inputMap) => { | |
if (!(inputMap instanceof Map)) { | |
throw new Error(`${inputMap} is not a valid Map`); | |
} | |
const outputObj = {} | |
inputMap.forEach((k, v) => { | |
return outputObj[v] = k; | |
}); | |
return outputObj; |
Where you should store a password salt
string?
The difference between a Mixin
and Multiple Inheritance
Checking if a dictionary is empty
bool
will return false if dict
is emptybool
cast if the object is a collection (list, dict, set, set, etc)What's with the with
statement
Should all jQuery events be bound to
$(document)
?
Script to determine which elements are creating a horizontal overflow (creating an unnecessary scrollbar)
I hereby claim:
To claim this, I am signing this object: