a Frontend Developer who experienced in ReactJS to building Website. I am very passionate and love my job. My main programming language is Javascript and PHP. My favorite Library are React for web development. I am very excited to learn something new.
π
whoopss
full time learner. curious about programming. cheers π»
active on https://gitlab.com/ilhamgusti
- Jakarta, ID
- https://ilhamgusti.id
- @ilhmgst
Pinned Loading
-
useInterval.js
useInterval.js 1function useInterval(callback) {
2const savedCallback = useRef();
34useEffect(() => {
5savedCallback.current = callback;
-
writing mutable object safely
writing mutable object safely 1/**
2*
3* @param o Object to mutate
4* @param ks array of keys, or string of keys
5* @param v value to assign
-
enumToArray.ts
enumToArray.ts 1/**
2* Helper to produce an array of enum values.
3* @param enumeration Enumeration object.
4*/
5export function enumToArray<T, G extends keyof T = keyof T>(enumeration: T): T[G][] {
-
while promise with condition
while promise with condition 1export default async function whilePromise(action, condition) {
2const result = await action();
34if (condition(result)) {
5return whilePromise(action, condition);
-
runAllFunction.js
runAllFunction.js 1// https://stackoverflow.com/questions/51403615/spread-syntax-ecmascript
2const callAll = (...fns) => (...args) => fns.forEach(fn => fn?.(...args))
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.