import { Key } from './types' ; export function createGetInitialArgs ( size ) { private description param args returns return function ( args ) : Key { if ( size >= args . length ) { return args ; } if ( size === 0 ) { return [ ] ; } if ( size === 1 ) { return [ args [ 0 ] ] ; } if ( size === 2 ) { return [ args [ 0 ] , args [ 1 ] ] ; } if ( size === 3 ) { return [ args [ 0 ] , args [ 1 ] , args [ 2 ] ] ; } const clone = [ ] ; for ( let index = 0 ; index < size ; index ++ ) { clone [ index ] = args [ index ] ; } return clone ; } ; }