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

lodash.combinations

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.combinations - npm Package Compare versions

Comparing version 1.0.0 to 17.7.22

.npmignore

16

lodash.combinations.js
(function(_) {
_.mixin({combinations: function(array, n) {
_.mixin({combinations: function(values, n) {
values = _.values(values);
var combinations = [];
var func = function(combination, i) {
(function f(combination, index) {
if (combination.length < n) {
_.findIndex(array, function(v, i) {
func(combination.concat([v]), i + 1);
}, i);
_.find(values, function(value, index) {
f(_.concat(combination, [value]), index + 1);
}, index);
} else {
combinations.push(combination);
}
};
func([], 0);
})([], 0);
return combinations;

@@ -19,3 +19,3 @@ }});

})((function() {
if (typeof exports !== 'undefined' && this === exports) {
if (typeof module !== 'undefined' && typeof exports !== 'undefined' && this === exports) {
return require('lodash');

@@ -22,0 +22,0 @@ } else {

{
"name": "lodash.combinations",
"version": "1.0.0",
"version": "17.7.22",
"description": "Calculates all possible combinations of certain size.",
"keywords": ["lodash", "plugin", "mixin", "array", "combinatorics"],
"main": "lodash.combinations.js",
"dependencies": {
"lodash": ">=4.17.4"
"repository": {
"type": "git",
"url": "git+https://github.com/SeregPie/lodash.combinations.git"
},
"author": "Sergej Sintschilin",
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/SeregPie/lodash.combinations.git"
"license": "MIT",
"bugs": {
"url": "https://github.com/SeregPie/lodash.combinations/issues"
},
"homepage": "https://github.com/SeregPie/lodash.combinations#readme",
"dependencies": {
"lodash": "latest"
}
}
}
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