{"ScriptPreparationCode":"const arr = [{\r\n a: 2,\r\n b: 4\r\n}, {\r\n a: 3,\r\n b: 6\r\n}, {\r\n a: 5,\r\n b: 9\r\n}]\r\nconst emptyArr = []","TestCases":[{"Name":"useing isArray","Code":"const arr = [{\r\n a: 2,\r\n b: 4\r\n}, {\r\n a: 3,\r\n b: 6\r\n}, {\r\n a: 5,\r\n b: 9\r\n}]\r\nconst emptyArr = [];\r\nif(Array.isArray(arr)) console.log(\u0027array\u0027);\r\nif(Array.isArray(emptyArr)) console.log(\u0027emptyArray\u0027);","IsDeferred":false},{"Name":"useing length","Code":"const arr = [{\r\n a: 2,\r\n b: 4\r\n}, {\r\n a: 3,\r\n b: 6\r\n}, {\r\n a: 5,\r\n b: 9\r\n}];\r\nconst emptyArr = [];\t\r\nif(arr?.length) console.log(\u0027array\u0027);\r\nif(emptyArr?.length) console.log(\u0027emptyArray\u0027);","IsDeferred":false}]}