iterable-operator
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -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 |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
523
40774
688
6522936