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

ml-array-normed

Package Overview
Dependencies
Maintainers
7
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-array-normed - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

History.md

3

lib-es6/index.js
import max from 'ml-array-max';
import sum from 'ml-array-sum';
import isArray from 'is-any-array';

@@ -17,3 +18,3 @@ /**

if (!Array.isArray(input)) {
if (!isArray(input)) {
throw new Error('input must be an array');

@@ -20,0 +21,0 @@ }

@@ -7,2 +7,3 @@ 'use strict';

var sum = _interopDefault(require('ml-array-sum'));
var isArray = _interopDefault(require('is-any-array'));

@@ -18,3 +19,3 @@ /**

const { algorithm = 'absolute' } = options;
if (!Array.isArray(input)) {
if (!isArray(input)) {
throw new Error('input must be an array');

@@ -21,0 +22,0 @@ }

{
"name": "ml-array-normed",
"version": "1.0.3",
"version": "1.1.0",
"description": "Get a normed array in an array",

@@ -24,6 +24,6 @@ "main": "lib/index.js",

"dependencies": {
"is-any-array": "^0.1.0",
"ml-array-max": "^1.1.2",
"ml-array-sum": "^1.1.2"
},
"gitHead": "6a3b7e1b0fab7f3996b9af3a75d6234a68c9e4d0"
}
}
import max from 'ml-array-max';
import sum from 'ml-array-sum';
import isArray from 'is-any-array';
/**

@@ -13,3 +13,3 @@ * Computes the norm of the given values

const { algorithm = 'absolute' } = options;
if (!Array.isArray(input)) {
if (!isArray(input)) {
throw new Error('input must be an array');

@@ -16,0 +16,0 @@ }

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