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

remeda

Package Overview
Dependencies
Maintainers
2
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remeda - npm Package Compare versions

Comparing version 1.55.0 to 1.56.0

dist/commonjs/pullObject.js

1

dist/commonjs/index.js

@@ -122,2 +122,3 @@ "use strict";

__exportStar(require("./prop"), exports);
__exportStar(require("./pullObject"), exports);
__exportStar(require("./purry"), exports);

@@ -124,0 +125,0 @@ __exportStar(require("./randomString"), exports);

@@ -106,2 +106,3 @@ export * from "./add";

export * from "./prop";
export * from "./pullObject";
export * from "./purry";

@@ -108,0 +109,0 @@ export * from "./randomString";

@@ -14,2 +14,10 @@ import type { IterableContainer } from "./_types";

*
* There are several other functions that could be used to build an object from
* an array:
* * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.
* * `indexBy` - Builds an object from an array of *values* and a mapper for keys.
* * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
* * `mapToObj` - Builds an object from an array of items and a single mapper for key-value pairs.
* Refer to the docs for more details.
*
* @param entries - The list of input tuples.

@@ -36,2 +44,10 @@ * @signature

*
* There are several other functions that could be used to build an object from
* an array:
* * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.
* * `indexBy` - Builds an object from an array of *values* and a mapper for keys.
* * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
* * `mapToObj` - Builds an object from an array of items and a single mapper for key-value pairs.
* Refer to the docs for more details.
*
* @signature

@@ -38,0 +54,0 @@ * R.fromEntries()(tuples)

@@ -12,2 +12,10 @@ import type { IterableContainer } from "./_types";

*
* There are several other functions that could be used to build an object from
* an array:
* * `indexBy` - Builds an object from an array of *values* and a mapper for keys.
* * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
* * `fromEntries` - Builds an object from an array of key-value pairs.
* * `mapToObj` - Builds an object from an array of items and a single mapper for key-value pairs.
* Refer to the docs for more details.
*
* @param data - An array of keys of the output object. All items in the array

@@ -31,2 +39,10 @@ * would be keys in the output array.

*
* There are several other functions that could be used to build an object from
* an array:
* * `indexBy` - Builds an object from an array of *values* and a mapper for keys.
* * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
* * `fromEntries` - Builds an object from an array of key-value pairs.
* * `mapToObj` - Builds an object from an array of items and a single mapper for key-value pairs.
* Refer to the docs for more details.
*
* @param mapper - Takes a key and returns the value that would be associated

@@ -33,0 +49,0 @@ * with that key.

@@ -14,2 +14,10 @@ import type { IterableContainer } from "./_types";

*
* There are several other functions that could be used to build an object from
* an array:
* * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.
* * `indexBy` - Builds an object from an array of *values* and a mapper for keys.
* * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
* * `mapToObj` - Builds an object from an array of items and a single mapper for key-value pairs.
* Refer to the docs for more details.
*
* ! **DEPRECATED**: Use `R.fromEntries(pairs)`, for dataLast invocations use the functional form `R.fromEntries()`. Will be removed in V2!

@@ -16,0 +24,0 @@ *

@@ -106,2 +106,3 @@ export * from "./add";

export * from "./prop";
export * from "./pullObject";
export * from "./purry";

@@ -108,0 +109,0 @@ export * from "./randomString";

@@ -6,2 +6,10 @@ import type { PredIndexed } from "./_types";

*
* There are several other functions that could be used to build an object from
* an array:
* * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.
* * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
* * `fromEntries` - Builds an object from an array of key-value pairs.
* * `mapToObj` - Builds an object from an array of items and a single mapper for key-value pairs.
* Refer to the docs for more details.
*
* @param array - The array.

@@ -26,2 +34,10 @@ * @param fn - The indexing function.

*
* There are several other functions that could be used to build an object from
* an array:
* * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.
* * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
* * `fromEntries` - Builds an object from an array of key-value pairs.
* * `mapToObj` - Builds an object from an array of items and a single mapper for key-value pairs.
* Refer to the docs for more details.
*
* @param fn - The indexing function.

@@ -28,0 +44,0 @@ * @signature

4

dist/types/invert.d.ts
type Inverted<T extends object> = T[keyof T] extends PropertyKey ? Record<T[keyof T], keyof T> : never;
/**
* Returns an object whose keys are values are swapped. If the object contains duplicate values,
* Returns an object whose keys and values are swapped. If the object contains duplicate values,
* subsequent values will overwrite previous values.

@@ -17,3 +17,3 @@ *

/**
* Returns an object whose keys are values are swapped. If the object contains duplicate values,
* Returns an object whose keys and values are swapped. If the object contains duplicate values,
* subsequent values will overwrite previous values.

@@ -20,0 +20,0 @@ *

/**
* Map each element of an array into an object using a defined callback function.
*
* There are several other functions that could be used to build an object from
* an array:
* * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.
* * `indexBy` - Builds an object from an array of *values* and a mapper for keys.
* * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
* * `fromEntries` - Builds an object from an array of key-value pairs.
* Refer to the docs for more details.
*
* @param array - The array to map.

@@ -21,2 +29,10 @@ * @param fn - The mapping function, which should return a tuple of [key, value], similar to Object.fromEntries.

*
* There are several other functions that could be used to build an object from
* an array:
* * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.
* * `indexBy` - Builds an object from an array of *values* and a mapper for keys.
* * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
* * `fromEntries` - Builds an object from an array of key-value pairs.
* Refer to the docs for more details.
*
* @param fn - The mapping function, which should return a tuple of [key, value], similar to Object.fromEntries.

@@ -23,0 +39,0 @@ * @returns The new mapped object.

{
"name": "remeda",
"version": "1.55.0",
"version": "1.56.0",
"description": "A utility library for JavaScript and Typescript.",

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

@@ -6,3 +6,2 @@ # Remeda

![GitHub CI](https://img.shields.io/github/actions/workflow/status/remeda/remeda/ci.yml?branch=master&label=github-ci)
[![Travis CI](https://img.shields.io/travis/remeda/remeda/master?label=travis-ci)](https://travis-ci.org/remeda/remeda)
[![Codecov](https://img.shields.io/codecov/c/github/remeda/remeda/master)](https://codecov.io/gh/remeda/remeda)

@@ -9,0 +8,0 @@ [![NPM](https://img.shields.io/npm/v/remeda)](https://www.npmjs.org/package/remeda)

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