{"size": 257, "ext": "js", "max_stars_repo_path": "strict.js", "max_stars_repo_name": "lamansky/pfn", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "strict.js", "max_issues_repo_name": "lamansky/pfn", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "strict.js", "max_forks_repo_name": "lamansky/pfn", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.5555555556, "max_line_length": 80, "alphanum_fraction": 0.560311284}
'use strict'

const f = x => typeof x === 'function'
const nil = require('is-nil')
const toss = err => { throw err }

module.exports = (x, or = a => a) => f(x) ? x : nil(x) ? (f(or) ? or : () => or)
  : toss(new TypeError('Value cannot be a non-function'))
