All files / src/utils coerceIntoArray.ts

0% Statements 0/5
0% Branches 0/2
0% Functions 0/1
0% Lines 0/5
1 2 3 4 5 6 7 8               
export default function coerceIntoArray( x ) {
  if ( Array.isArray( x ) === false ) {
    return [ x ];
  } else {
    return x;
  }
}