MCPcopy
hub / github.com/vercel/next.js / toArr

Function toArr

packages/next/taskfile-watch.js:30–30  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

28const path = require('path')
29const Watchpack = require('watchpack')
30const toArr = (val) => (Array.isArray(val) ? val : val == null ? [] : [val])
31
32module.exports = function (Taskr, _utils) {
33 Taskr.plugin(

Callers 1

taskfile-watch.jsFile · 0.85

Calls 1

isArrayMethod · 0.80

Tested by

no test coverage detected