Skip to content
View brynldrn's full-sized avatar
🏠
Working from home
🏠
Working from home

Block or report brynldrn

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
brynldrn/README.md

Pinned Loading

  1. gg-pos gg-pos Public

    TypeScript

  2. baeq-next-latest baeq-next-latest Public

    TypeScript

  3. Converts an array into chunks Converts an array into chunks
    1
    // https://stackoverflow.com/a/37826698/7950729
    2
    const chunk = 25;
    3
    
                  
    4
    inputArray.reduce((all,one,i) => {
    5
       const ch = Math.floor(i/chunk); 
  4. Simple plain JS to get all the sibli... Simple plain JS to get all the siblings of a given element
    1
    export default elem => {
    2
      var siblings = [];
    3
      var sibling = elem.parentNode.firstChild;
    4
    
                  
    5
      for ( ; sibling; sibling = sibling.nextSibling )
  5. unwrapElement.js unwrapElement.js
    1
    export const unwrapElement = (node) => (node.replaceWith(...node.childNodes))
  6. Removes distinct values from an arra... Removes distinct values from an array of objects
    1
    const distinct = (array, property) => (
    2
      array.filter((value, index, self) => self.map((x) => x[property]).indexOf(value[property]) === index)
    3
    )