bugsnag/bugsnag-js

View on GitHub
packages/core/lib/validators/list-of-functions.js

Summary

Maintainability
A
0 mins
Test Coverage
const filter = require('../es-utils/filter')
const isArray = require('../es-utils/is-array')

module.exports = value => typeof value === 'function' || (isArray(value) && filter(value, f => typeof f === 'function').length === value.length)