Skip to content
View alexkhismatulin's full-sized avatar
Block or Report

Block or report alexkhismatulin

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

  1. react-use-count-down react-use-count-down Public

    Dead simple yet powerful countdown hook for React.

    JavaScript 74 20

  2. developit/redaxios developit/redaxios Public

    The Axios API, as an 800 byte Fetch wrapper.

    JavaScript 4.5k 100

  3. rehooks/awesome-react-hooks rehooks/awesome-react-hooks Public

    Awesome React Hooks

    9.7k 780

  4. Groups array entries based on given ... Groups array entries based on given path. Uses getProperty function (https://gist.github.com/alexkhismatulin/0dee70114e597a32bcd59c6acc934d79)
    1
    const groupBy = (arr, path) => {
    2
      if (!path || typeof path !== "string") return {}
    3
    
                  
    4
      return Object.keys(arr).reduce((accum, key) => {
    5
        const value = getProperty(arr[key], path)
  5. A simple errors-safe function allowi... A simple errors-safe function allowing to access properties of objects/arrays by string key like
    1
    const getProperty = (obj, path, defaultValue) => {
    2
      const tokens = path.split(/[.[\]]+/g).filter(Boolean)
    3
    
                  
    4
      if (!obj || typeof obj !== "object") return defaultValue
    5
    
                  
  6. Simple deep cloning function. Works ... Simple deep cloning function. Works fine with primitive objects/arrays, doesn't work properly with class instances and objects with custom prototypes.
    1
    const isObject = value => typeof value === "object"
    2
    
                  
    3
    const cloneDeep = (value) => {
    4
      if (!value || !isObject(value)) return value
    5