wtest 0.1.2

Tools for writing and running tests.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function arrayFromArguments()
{
  console.log( arguments );
  /* log : [Arguments] { '0': 'hello', '1': 'world' } */
  console.log( arguments instanceof Array );
  /* log : false */

  let argumentsArr = Array.from( arguments );
  console.log( argumentsArr );
  /* log : [ 'hello', 'world' ] */
  console.log( argumentsArr instanceof Array );
  /* log : true */
}
arrayFromArguments( 'hello', 'world' );