import { _concat } from"../../utility/array/_concat";describe('_concat', () => {test('_concat should return an new array being composed of number', () => {constreceived= [1,2,3,4,5];constexpected= [1,2,3,4,5,6,7,8];constresult=_concat<number>(received,6,7,8);for (const [i,v] ofresult.entries()) {expect(v).toBe(expected[i]); }// Should not change the origin arrayexpect(received.length).toBe(5); });test('_concat should return an new array being composed of any value', () => {constreceived:any[] = [1,0,'',undefined,null, [[100]], { name:'ddzy' }];constexpected=10;constresult=_concat<any>(received, [[200], [300]], { age:21 });expect(result.length).toBe(expected); });});