MCPcopy Index your code
hub / github.com/developit/microbundle / toArray

Function toArray

src/prog.js:4–4  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2let { version } = require('../package.json');
3
4const toArray = val => (Array.isArray(val) ? val : val == null ? [] : [val]);
5
6export default handler => {
7 const ENABLE_MODERN = process.env.MICROBUNDLE_MODERN !== 'false';

Callers 1

cmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…