Socket
Socket
Sign inDemoInstall

iterable-operator

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iterable-operator - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

lib/es2015/intermediate/utils.d.ts

1

lib/es2015/index.d.ts

@@ -0,2 +1,3 @@

export * from './utils';
export * from './intermediate';
export * from './terminal';

@@ -17,4 +17,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./utils"), exports);
__exportStar(require("./intermediate"), exports);
__exportStar(require("./terminal"), exports);
//# sourceMappingURL=index.js.map

2

lib/es2015/intermediate/drop-async.js

@@ -17,3 +17,3 @@ "use strict";

const go_1 = require("@blackglory/go");
const utils_1 = require("../utils");
const utils_1 = require("./utils");
const errors_1 = require("@blackglory/errors");

@@ -20,0 +20,0 @@ function dropAsync(iterable, count) {

@@ -17,3 +17,3 @@ "use strict";

const go_1 = require("@blackglory/go");
const utils_1 = require("../utils");
const utils_1 = require("./utils");
const errors_1 = require("@blackglory/errors");

@@ -20,0 +20,0 @@ const to_array_async_1 = require("../terminal/to-array-async");

@@ -5,3 +5,3 @@ "use strict";

const go_1 = require("@blackglory/go");
const utils_1 = require("../utils");
const utils_1 = require("./utils");
const errors_1 = require("@blackglory/errors");

@@ -8,0 +8,0 @@ function dropRight(iterable, count) {

@@ -5,3 +5,3 @@ "use strict";

const go_1 = require("@blackglory/go");
const utils_1 = require("../utils");
const utils_1 = require("./utils");
const errors_1 = require("@blackglory/errors");

@@ -8,0 +8,0 @@ function drop(iterable, count) {

@@ -1,2 +0,2 @@

import { GetTypeOfIterable } from '../utils';
import { GetTypeOfIterable } from './utils';
import { Awaitable } from 'justypes';

@@ -3,0 +3,0 @@ export declare type ExtractTypeTupleFromAsyncLikeIterableTuple<T> = {

@@ -1,2 +0,2 @@

import { GetTypeOfIterable } from '../utils';
import { GetTypeOfIterable } from './utils';
export declare type ExtractTypeTupleFromIterableTuple<T> = {

@@ -3,0 +3,0 @@ [K in keyof T]: GetTypeOfIterable<T[K]>;

@@ -0,2 +1,3 @@

export * from './utils';
export * from './intermediate';
export * from './terminal';

@@ -17,4 +17,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./utils"), exports);
__exportStar(require("./intermediate"), exports);
__exportStar(require("./terminal"), exports);
//# sourceMappingURL=index.js.map

@@ -5,3 +5,3 @@ "use strict";

const go_1 = require("@blackglory/go");
const utils_1 = require("../utils");
const utils_1 = require("./utils");
const errors_1 = require("@blackglory/errors");

@@ -8,0 +8,0 @@ function dropAsync(iterable, count) {

@@ -5,3 +5,3 @@ "use strict";

const go_1 = require("@blackglory/go");
const utils_1 = require("../utils");
const utils_1 = require("./utils");
const errors_1 = require("@blackglory/errors");

@@ -8,0 +8,0 @@ const to_array_async_1 = require("../terminal/to-array-async");

@@ -5,3 +5,3 @@ "use strict";

const go_1 = require("@blackglory/go");
const utils_1 = require("../utils");
const utils_1 = require("./utils");
const errors_1 = require("@blackglory/errors");

@@ -8,0 +8,0 @@ function dropRight(iterable, count) {

@@ -5,3 +5,3 @@ "use strict";

const go_1 = require("@blackglory/go");
const utils_1 = require("../utils");
const utils_1 = require("./utils");
const errors_1 = require("@blackglory/errors");

@@ -8,0 +8,0 @@ function drop(iterable, count) {

@@ -1,2 +0,2 @@

import { GetTypeOfIterable } from '../utils';
import { GetTypeOfIterable } from './utils';
import { Awaitable } from 'justypes';

@@ -3,0 +3,0 @@ export declare type ExtractTypeTupleFromAsyncLikeIterableTuple<T> = {

@@ -1,2 +0,2 @@

import { GetTypeOfIterable } from '../utils';
import { GetTypeOfIterable } from './utils';
export declare type ExtractTypeTupleFromIterableTuple<T> = {

@@ -3,0 +3,0 @@ [K in keyof T]: GetTypeOfIterable<T[K]>;

{
"name": "iterable-operator",
"version": "2.1.0",
"version": "2.2.0",
"description": "Utilities for JavaScript Iterable and AsyncIterable",

@@ -5,0 +5,0 @@ "keywords": [

@@ -21,2 +21,17 @@ # iterable-operator

## API
### Utils
#### isIterable
```ts
function isIterable<T>(val: unknown): val is Iterable<T>
function isntIterable<T>(val: T): val is Exclude<T, Iterable<unknown>>
```
#### isAsyncIterable
```ts
function isAsyncIterable<T>(val: unknown): val is AsyncIterable<T>
function isntAsyncIterable<T>(
val: T
): val is Exclude<T, AsyncIterable<unknown>>
```
### Intermediate Operations

@@ -223,3 +238,3 @@ #### chunk, chunkAsync

#### intersection
#### intersection, intersectionAsync
```ts

@@ -226,0 +241,0 @@ function intersection<T>(left: Iterable<T>, right: Iterable<T>): IterableIterator<T>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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