Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@common-utilities/filter-array

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@common-utilities/filter-array - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

package.json
{
"name": "@common-utilities/filter-array",
"version": "0.0.2",
"version": "0.0.3",
"description": "A basic implementation of the common utility function, filter-array 🧹",

@@ -33,3 +33,3 @@ "main": "dist/index.js",

},
"gitHead": "094a0042033287b91a3f06a45f71e51596c3d100"
"gitHead": "3de4a71ca5c0192f988bfdede188fc72f941f9a4"
}

@@ -18,5 +18,4 @@ # @common-utilities/filter-array 🧰🧹

```javascript
const filterArray = (arr) =>
arr.filter((item, index, self) => self.indexOf(item) === index)
```typescript
const filterArray = (arr) => arr.filter((item, index, self) => self.indexOf(item) === index)
```

@@ -31,4 +30,5 @@

```javascript
const result = filterArray(['test', 'test', 'foo', 'bar', 'biz']) // ['test', 'foo', 'bar', 'biz'])
```typescript
filterArray(['test', 'test', 'foo', 'bar', 'biz'])
// ['test', 'foo', 'bar', 'biz'])
```

@@ -42,3 +42,3 @@

Just simple typed functional well documented and tested javascript utility functions—so why not use 'em?
Simple, typed, functional, documented, and tested javascript utility functions.

@@ -45,0 +45,0 @@ ---

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc