New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

equinumerica

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

equinumerica

Get the indices in an array where the sum of the preceding elements is equal to the sum of the remaining elements

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

equinumerica

npm XO code style Build Status codecov

Get the indices in an array where the sum of the preceding elements is equal to the sum of the remaining elements

Given an array of integers, returns any indices, such that 0 ≤ P < N and the sum of the elements in the lower indices is equal to the sum of the elements in the higher indices. In the event the array has no such points, NaN will be returned.

Installation

npm install equinumerica

Usage

const equinumerica = require('equinumerica');

equinumerica([-1, 3, -4, 5, 1, -6, 2, 1]); //--> [1, 3, 7]

Keywords

array

FAQs

Package last updated on 14 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts