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

functools-ts

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

functools-ts - npm Package Compare versions

Comparing version 0.0.24 to 0.0.25

1

dist/list.d.ts

@@ -16,3 +16,4 @@ import { F1 } from "./function";

isList: <A>(maybeList: any) => maybeList is ReadonlyArray<A>;
remove: <A>(list: ReadonlyArray<A>, itemToRemove: A) => ReadonlyArray<A>;
};
export {};

5

dist/list.js

@@ -38,4 +38,7 @@ var match = function (selector, item, index, list) {

},
isList: function (maybeList) { return Array.isArray(maybeList); }
isList: function (maybeList) { return Array.isArray(maybeList); },
remove: function (list, itemToRemove) {
return list.filter(function (item) { return item !== itemToRemove; });
}
};
//# sourceMappingURL=list.js.map

@@ -10,3 +10,3 @@ {

"typings": "dist/index.d.ts",
"version": "0.0.24",
"version": "0.0.25",
"repository": "git@bitbucket.org:chaaba_j/ts-functools.git",

@@ -13,0 +13,0 @@ "author": "Jalal Chaabane",

@@ -61,3 +61,5 @@ import { F1 } from "./function"

isList: <A>(maybeList: any): maybeList is List<A> => Array.isArray(maybeList)
isList: <A>(maybeList: any): maybeList is List<A> => Array.isArray(maybeList),
remove: <A>(list: List<A>, itemToRemove: A): List<A> =>
list.filter(item => item !== itemToRemove)
}

@@ -24,2 +24,11 @@ import { List } from "../src/list";

})
it("should remove an item", () => {
const firstItem = items[0]
expect(List.remove(items, firstItem)).to.eql(items.slice(1))
})
it("should not remove if not found", () => {
expect(List.remove(items, null)).to.eql(items)
})
})

Sorry, the diff of this file is not supported yet

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