New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tfk-unique-array

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tfk-unique-array

Creates an array of unique elements

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
4
Created
Source

Build Status Coverage Status js-standard-style

tfk-unique-array

Creates an array of unique values

Installation

$ npm install tfk-unique-array

Usage

const makeUnique = require('tfk-unique-array')
const objekt = {
  title: 'Ole'
}
const streng = 'En dag jeg gikk tur'
const liste = [1,2,3,4,5,1,2,3,4,1,23,4,5, objekt, streng, streng, objekt, objekt, objekt]

console.log(makeUnique(liste))

//=>[ 1, 2, 3, 4, 5, 23, { title: 'Ole' }, 'En dag jeg gikk tur' ]

License

MIT

Keywords

Telemark fylkeskommune

FAQs

Package last updated on 31 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts