function toArray(val) {
  if (Array.isArray(val)) {
    return val
  }
  return [val]
}
// Wraps a value in an array if it isn't one already
Wraps a value in an array if it isn't one already
Wraps a value in an array if it isn ' t one already
function toArray(val) {
  if (Array.isArray(val)) {
    return val
  }
  return [val]
}
function toArray ( val ) { if ( Array . isArray ( val ) ) { return val } return [ val ] }
Wraps a value in an array if it isn't one already
Wraps a value in an array if it isn ' t one already