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

arrayq

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrayq - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

16

lib/prototype.ts

@@ -1,5 +0,17 @@

/// <reference path="./prototype.d.ts" />
import * as lib from './index';
declare global {
interface Array<T> {
qContains<TR>(r: TR[], predicate?: (l: T, r: TR) => boolean): boolean;
qIntersect<TR>(r: TR[], predicate?: (l: T, r: TR) => boolean): T[];
qSame<TR>(r: TR[], predicate?: (l: T, r: TR) => boolean): boolean;
qEmpty(): boolean;
qFirst(predicate?: (l: T) => boolean): T;
qLast(predicate?: (l: T) => boolean): T;
qRotate(offset: number): T[];
qMapMany<TR>(selector?: (l: T) => TR[]): TR[];
qDistinct(key?: (l: T) => any): T[];
}
}
if (!Array.prototype.qContains) {

@@ -6,0 +18,0 @@ Array.prototype.qContains = function(r, predicate?) {

2

package.json
{
"name": "arrayq",
"version": "0.1.2",
"version": "0.1.3",
"description": "Array query methods for Node.js",

@@ -5,0 +5,0 @@ "main": "lib/prototype.ts",

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