cht8687 / fp-ts-string-uniq

string uniq util function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fp-ts extra string uniq

import { uniq } from './'
import { pipe } from 'fp-ts/lib/pipeable'
import * as assert from 'assert'


const uniqTestResult = pipe(
    ["123", "123", "234", "234"],
    uniq
)


assert.deepStrictEqual(uniqTestResult, ["123", "234"])

About

string uniq util function


Languages

Language:TypeScript 100.0%