Skip to content
View employee451's full-sized avatar

Block or report employee451

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. removeArrayDuplicatesByProperty.ts removeArrayDuplicatesByProperty.ts
    1
    // @see https://gist.github.com/employee451/b4414c0cc4f5a818eea82f881c4dc227
    2
    import getNestedProperty from './getNestedProperty'
    3
    
                  
    4
    /**
    5
     * Returns an array without duplicate items based on the provided object property
  2. 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
  3. retrier.ts retrier.ts
    1
    type RetrierResponseType<DataType> =
    2
    	| {
    3
    			success: false
    4
    			data?: any
    5
    	  }
  4. 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
  5. findMissingKeys.ts findMissingKeys.ts
    1
    // @see https://gist.github.com/employee451/938ae007cddd9733b64acb9a958428bd
    2
    import { getNestedObjectKeyNames } from '@shared/helpers/getNestedObjectKeyNames'
    3
    
                  
    4
    type MissingKeyResult = {
    5
    	/** The index of the object that has the missing key */