Skip to content
View jkohlin's full-sized avatar
  • Sweden
  • 02:01 (UTC +01:00)

Block or report jkohlin

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. family-bets family-bets Public

    A site I built to assist my friends' and family's betting on the World Cup.

    JavaScript

  2. Bas Bas Public

    An iOS app made in React Native to find information about a "Baskonto"

    JavaScript

  3. Filter out keys and or values in an ... Filter out keys and or values in an object
    1
    /**
    2
     * Description
    3
     * @param {Object} obj
    4
     * @param {function} keyFilter
    5
     * @param {function} valueFilter
  4. svgColorBoxes svgColorBoxes
    1
    function svgColorSwatches(colors, size = 64, vertical = false) {
    2
        let svg = vertical
    3
            ? `<svg width="${size}" height="${colors.length * size}" viewBox="0 0 ${size} ${colors.length * size}" fill="none" xmlns="http://www.w3.org/2000/svg">`
    4
            : `<svg width="${colors.length * size}" height="${size}" viewBox="0 0 ${colors.length * size} ${size}" fill="none" xmlns="http://www.w3.org/2000/svg">`;
    5
        let x = 0, y = 0;
  5. Turn an object to an array of one-ke... Turn an object to an array of one-key-objects
    1
    /**
    2
     * Description Splits out all keys from an object and returns them as separate objects with single key/value pairs
    3
     * @param {Object} obj
    4
     * @returns {Array}
    5
     */
  6. groupByMulti groupByMulti
    1
    type GroupByMulti = (list: any[], paths: { [key: string]: string }) => any
    2
    export const groupByMulti: GroupByMulti = (list, paths) => {
    3
        return (
    4
            list?.reduce((acc: { [key: string]: any }, row: any) => {
    5
                Object.keys(paths).forEach((key) => {