10 Matching Annotations
- Dec 2023
-
stackoverflow.com stackoverflow.com
- Nov 2023
-
stackoverflow.com stackoverflow.com
-
answered
-
- Mar 2023
-
stackoverflow.com stackoverflow.com
- Mar 2021
-
stackoverflow.com stackoverflow.com
-
// A general key transform method. Pass it a function that accepts the old key and returns // the new key. // // @example // obj = transformKeys(obj, (key) => ( // key.replace(/\b(big)\b/g, 'little') // )) export function transformKeys(source, f) { return Object.entries(source).reduce((o, [key, value]) => { o[f(key) || key] = value return o }, {}) } // Provide an object that maps from old key to new key export function rekeyObject(source, keyMap) { transformKeys(source, key => keyMap[key]) }
-
- Oct 2020
-
stackoverflow.com stackoverflow.com
-
Also, it looks like the sandbox, as posted, is not actually doing any debouncing.
-
- Sep 2020
-
stackoverflow.com stackoverflow.com
- May 2020
- Apr 2020
-
stackoverflow.com stackoverflow.com
- Mar 2020
-
stackoverflow.com stackoverflow.com