Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
make-arrow-function
Advanced tools
Function that returns an arbitrary arrow function, or undefined if arrow function syntax is unsupported.
Function that returns an arbitrary arrow function, or undefined if arrow function syntax is unsupported.
var maybeArrowFunction = require('make-arrow-function')();
if (maybeArrowFunction) {
assert(typeof maybeArrowFunction === 'function');
} else {
assert(typeof maybeArrowFunction === 'undefined');
}
var arrowFunctions = require('make-arrow-function').list();
assert(arrowFunctions.every(function (fn) { return typeof fn === 'function'; }));
Simply clone the repo, npm install
, and run npm test
v1.2.0 - 2020-01-27
#1
a2dbb15
jscs
47362d9
node
v8.4
, v7.10
, v6.11
, v4.8
; newer npm breaks on older node; improve matrix. 7d9c76d
node
v12.11
, v11.15
, v10.16
, v8.16
, v6.17
42b5df9
auto-changelog
98573fe
node
v11.1
, v10.13
, v9.11
, v8.12
, v6.14
, v4.9
; use nvm install-latest-npm
bda106c
node
v9.3
, v8.9
, v6.12
; use nvm install-latest-npm
; pin included builds to LTS 4ec5c2d
121cd07
node
v7.0
, v6.9
, v4.6
; improve test matrix f91282e
tape
, jscs
, eslint
, @ljharb/eslint-config
, nsp
5fbfc69
jscs
, eslint
, @ljharb/eslint-config
, nsp
74af4f3
eslint
, @ljharb/eslint-config
, tape
5c202b1
e5d6698
tape
, jscs
, eslint
, @ljharb/eslint-config
f8bb7a9
tape
, jscs
, eslint
, @ljharb/eslint-config
, nsp
b27f7ee
tape
, jscs
, eslint,
nsp [
58a2d0e`](https://github.com/ljharb/make-arrow-function/commit/58a2d0eb842f695a3f5fd6645a74c69c48e6dbe5)cab9a83
jscs
, eslint
, nsp
5afb885
5620d1b
v5.6
, v4.3
308f593
jscs
, eslint
, @ljharb/eslint-config
, nsp
99f9eeb
jscs
, eslint
, @ljharb/eslint-config
561d1e5
tape
, eslint
, @ljharb/eslint-config
1a44053
tape
, jscs
, nsp
, eslint
, @ljharb/eslint-config
7adf890
node
v5.9
, v4.4
bd412a5
jscs
, eslint
, @ljharb/eslint-config
, nsp
8a23d6c
eslint
, @ljharb/eslint-config
, tape
, nsp
69ef6fa
io.js
v3.3
, node
v4.1
ca199f0
eslint
, @ljharb/eslint-config
, tape
; add safe-publish-latest
5907bd2
eslint
, @ljharb/eslint-config
, covert
, tape
2ce975f
eslint
, @ljharb/eslint-config
, nsp
, tape
fcb3fb4
7cfdd91
e0a7daa
jscs
, eslint
, @ljharb/eslint-config
, nsp
5fa4159
npx aud
instead of nsp
or npm audit
with hoops 92245fc
npm audit
instead of nsp
34b329f
node
v6.2
904b5f7
eslint
, @ljharb/eslint-config
, nsp
e34fcc9
eslint
, @ljharb/eslint-config
, nsp
064520a
nsp
, eslint
bec9f88
node
v7.2
5f02294
00c7167
3dacf2b
funding
field c03306f
node
supports arrow functions now. b593c16
eslint
2377184
eslint
cf7208f
node
v5.12
4200680
node
v5.10
d108b50
@ljharb/eslint-config
1276f60
node
v5.1
5f8e775
node
v4.2
fc0da59
node
v5.0
c38c355
FAQs
Function that returns an arbitrary arrow function, or undefined if arrow function syntax is unsupported.
The npm package make-arrow-function receives a total of 282 weekly downloads. As such, make-arrow-function popularity was classified as not popular.
We found that make-arrow-function demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.