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

newif

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newif

优雅的解决 if-else 嵌套问题,elegantly solve ifelse nesting

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

优雅的解决 if-else 嵌套循环

//用法
const ifElse = require('newif').init//引入并初始化
//链式调用
ifElse.new(false).run(log,1).next(true).run(log,2).next(true).run(log,3)
.new(4).run(log,4).next(false).run(log,5).next(true).run(log,6)
.new(false).run(log,7).next(true).run(log,8).next(true).run(log,9)
.new(true).run(log,10).next(true).run(log,11).next(true).run(log,12)

Keywords

if

FAQs

Package last updated on 01 May 2022

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