function takeFromArray ( instance , n ) { const arrInstance = ( instance . constructor === Array ) ? < Array < any > > instance : [ ... instance ] ; return arrInstance . slice ( 0 , n ) ; } export { takeFromArray as default , } ;