- Copenhagen, Denmark
- @askehippebrun
Pinned Loading
-
removeArrayDuplicatesByProperty.ts
removeArrayDuplicatesByProperty.ts 1// @see https://gist.github.com/employee451/b4414c0cc4f5a818eea82f881c4dc227
2import getNestedProperty from './getNestedProperty'
34/**
5* Returns an array without duplicate items based on the provided object property
-
getNestedObjectKeyNames.ts
getNestedObjectKeyNames.ts 1/**
2* Returns an array with the names of the keys of an object.
3* Supports nested objects.
4*
5* @example
-
retrier.ts
retrier.ts 1type RetrierResponseType<DataType> =
2| {
3success: false
4data?: any
5}
-
getNestedProperty.ts
getNestedProperty.ts 1/**
2* Safely gets a value from object using the provided path. Return `undefined` if it doesn't exist
3* Similar to lodash.get: https://lodash.com/docs/#get
4*
5* @param {{}} obj - target object
-
findMissingKeys.ts
findMissingKeys.ts 1// @see https://gist.github.com/employee451/938ae007cddd9733b64acb9a958428bd
2import { getNestedObjectKeyNames } from '@shared/helpers/getNestedObjectKeyNames'
34type MissingKeyResult = {
5/** The index of the object that has the missing key */
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.