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

@thi.ng/transducers

Package Overview
Dependencies
Maintainers
1
Versions
331
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/transducers - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

2

package.json
{
"name": "@thi.ng/transducers",
"version": "0.10.0",
"version": "0.10.1",
"description": "Lightweight transducer implementations for ES6 / TypeScript",

@@ -5,0 +5,0 @@ "main": "index.js",

import { Reducer, Transducer } from "./api";
export declare function transduce<A, B, C>(tx: Transducer<A, B>, rfn: Reducer<C, B>): Transducer<Iterable<A>, C>;
export declare function transduce<A, B, C>(tx: Transducer<A, B>, rfn: Reducer<C, B>, xs: Iterable<A>): C;
export declare function transduce<A, B, C>(tx: Transducer<A, B>, rfn: Reducer<C, B>, acc: C, xs: Iterable<A>): C;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const reduce_1 = require("./reduce");
const map_1 = require("./xform/map");
function transduce(...args) {

@@ -14,2 +15,4 @@ let acc, xs;

break;
case 2:
return map_1.map((x) => transduce(args[0], args[1], x));
default:

@@ -16,0 +19,0 @@ throw new Error(`illegal arity ${args.length}`);

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