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

finite-constant-function

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

finite-constant-function

make a function that returns the same value n times

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

finite-constant-function

build status AppVeyor Build Status

Make a function that will return a constant value n times, then nothing, undefined.

Get it!

npm install --save finite-constant-function

Usage

var fcf = require('finite-constant-function')
var fiveTimes = fcf(5, 419)

for (var i = 0; i < 25; i++) console.log(fiveTimes())

API

fcf(n, constant)

Create a function that will return constant n times, then nothing, undefined.

License

MIT

Keywords

finite

FAQs

Package last updated on 13 Feb 2018

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