@byte-this/funscript
Advanced tools
Comparing version
{ | ||
"name": "@byte-this/funscript", | ||
"version": "1.0.37", | ||
"version": "1.0.38", | ||
"description": "A typescript API which facilitates functional programming.", | ||
@@ -5,0 +5,0 @@ "main": "public-api.js", |
@@ -15,2 +15,3 @@ import { IterableList } from "../models/iterable-list"; | ||
static join<T>(list: IterableList<T>, sep: string): string; | ||
static firstElement<T>(list: IterableList<T>): T | undefined; | ||
/** | ||
@@ -17,0 +18,0 @@ * Given two iterables, return their intersection |
@@ -27,2 +27,9 @@ /** | ||
} | ||
static firstElement(list) { | ||
// return the first element | ||
for (const el of list) { | ||
return el; | ||
} | ||
return void 0; | ||
} | ||
/** | ||
@@ -29,0 +36,0 @@ * Given two iterables, return their intersection |
283374
0.08%3308
0.24%