example/threejs/asset/three.js
function( array, type, forceClone ) {

		if ( ! array || // let 'undefined' and 'null' pass
				! forceClone && array.constructor === type ) return array;

		if ( typeof type.BYTES_PER_ELEMENT === 'number' ) {

			return new type( array ); // create typed array

		}

		return Array.prototype.slice.call( array ); // create Array

	}
function( array, type, forceClone ) {

		if ( ! array || // let 'undefined' and 'null' pass
				! forceClone && array.constructor === type ) return array;

		if ( typeof type.BYTES_PER_ELEMENT === 'number' ) {

			return new type( array ); // create typed array

		}

		return Array.prototype.slice.call( array ); // create Array

	}
function ( array , type , forceClone ) { if ( ! array || // let 'undefined' and 'null' pass ! forceClone && array . constructor === type ) return array ; if ( typeof type . BYTES_PER_ELEMENT === 'number' ) { return new type ( array ) ; // create typed array } return Array . prototype . slice . call ( array ) ; // create Array }
converts an array to a specific type
converts an array to a specific type