42 Matching Annotations
- Nov 2022
-
typeorm.io typeorm.io
-
- Aug 2022
-
github.com github.com
- Nov 2021
-
www.mobindustry.net www.mobindustry.net
-
7 Most Popular JavaScript Libraries in 2021
-
- Oct 2021
-
benpickles.github.io benpickles.github.io
- Jun 2021
-
developer.mozilla.org developer.mozilla.orgProxy1
-
get: function(target, prop, receiver) { return "world"; }
-
- Mar 2021
-
github.com github.com
-
github.com github.com
- Jan 2021
-
atomiks.github.io atomiks.github.io
-
www.npmjs.com www.npmjs.com
-
www.npmjs.com www.npmjs.com
- Oct 2020
-
github.com github.com
Tags
Annotators
URL
-
-
github.com github.com
-
Another example:
const expensiveOperation = async (value) => { // return Promise.resolve(value) // console.log('value:', value) await sleep(1000) console.log('expensiveOperation: value:', value, 'finished') return value } var expensiveOperationDebounce = debounce(expensiveOperation, 100); // for (let num of [1, 2]) { // expensiveOperationDebounce(num).then(value => { // console.log(value) // }) // } (async () => { await sleep(0 ); console.log(await expensiveOperationDebounce(1)) })(); (async () => { await sleep(200 ); console.log(await expensiveOperationDebounce(2)) })(); (async () => { await sleep(1300); console.log(await expensiveOperationDebounce(3)) })(); // setTimeout(async () => { // console.log(await expensiveOperationDebounce(3)) // }, 1300)
Outputs: 1, 2, 3
Why, if I change it to:
(async () => { await sleep(0 ); console.log(await expensiveOperationDebounce(1)) })(); (async () => { await sleep(200 ); console.log(await expensiveOperationDebounce(2)) })(); (async () => { await sleep(1100); console.log(await expensiveOperationDebounce(3)) })();
Does it only output 2, 3?
-
-
www.npmjs.com www.npmjs.com
-
most popular one by downloads
-
-
www.npmjs.com www.npmjs.comdebounce1
Tags
Annotators
URL
-
-
-
use Xstate which offers a finite state machine that adheres to the SCXML specification and provides a lot of extra goodness, including visualization tools, test helpers and much more
-
- Sep 2020
-
react-spectrum.adobe.com react-spectrum.adobe.com
-
github.com github.com
- Jul 2020
-
amp.dev amp.dev
-
If you can, use AMP like any other JavaScript library to build your site and forget about the canonical linking. Using AMP to build a whole website dramatically reduces your maintenance burden.
-
-
github.com github.com
- May 2020
-
localforage.github.io localforage.github.io
-
localForage is a JavaScript library that improves the offline experience of your web app by using an asynchronous data store with a simple, localStorage-like API. It allows developers to store many types of data instead of just strings.
-
- Apr 2020
- Dec 2019
-
- Nov 2019
-
roylee0704.github.io roylee0704.github.io
- Oct 2019
-
reacttraining.com reacttraining.com
-
"Element" SelectorsEach component has a data-reach-* attribute on the underlying DOM element that you can think of as the "element" for the component.
-
- Sep 2019
-
github.com github.com
-
suitcss.github.io suitcss.github.io
-
github.com github.com
-
Tags
Annotators
URL
-
- Aug 2019
-
github.com github.com
-
cssinjs.org cssinjs.orgJSS1
Tags
Annotators
URL
-
-
github.com github.com
Tags
Annotators
URL
-
-
emotion.sh emotion.sh
-
@emotion/core
-
-
github.com github.com