std_tools 0.1.4

Collection of general purpose tools for solving problems. Fundamentally extend the language without spoiling, so may be used solely or in conjunction with another module of such kind.
Documentation
if( typeof module !== 'undefined' )
require( 'wTools' );
let _ = wTools;

console.log( '4_implementArrayMake.s' );

function arrayMake( src )
{
  if( src === null || src === undefined )
  return new Array();

  if( _.number.is( src ) )
  return new Array( src );

  if( src.length === 1 )
  return [ src[ 0 ] ];
  else
  return Array.apply( Array, src );
}

module.exports = arrayMake;