1.0.26 • Published 1 year ago
@headlineradmin/escape-webkit v1.0.26
escape-webkit
Hooks
useDebounce
useDebounce(value: T, delay?: number): T;
const [counter, setCounter] = useState(0);
cosnt debouncedCounter = useDebounce(counter, 1000);
useUserMedia
useUserMedia(constraints: MediaStreamConstraints, onError: (e: string) => void): MediaStream;
https://github.com/default34/typescript-navigator-usermedia-react-hook/blob/main/src/App.tsx
Utils
clone
Returns a deep copy of the source.
clone<T>(arg: T): T;
const objects = [{ 'a': 1 }, { 'b': 2 }];
const deepClone = clone(objects);
console.log(deepClone[0] === objects[0]); // => false
omit
Returns a partial copy of an object omitting the keys specified.
omit<T extends object, K extends readonly string[]>(obj: T, keys: K): Omit<T, Exclude<keyof T, K>>;
omit({a: 1, b: 2, c: 3, d: 4}, ['a', 'd']); //=> {b: 2, c: 3}
1.0.26
1 year ago
1.0.25
1 year ago
1.0.24
1 year ago
1.0.22
1 year ago
1.0.21
1 year ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.31
1 year ago
1.0.23
1 year ago
1.0.20
1 year ago
1.0.19
1 year ago
1.0.11
1 year ago
1.0.0
1 year ago