{"ScriptPreparationCode":"var arr = [{\r\n num: \u0027one\u0027\r\n}, {\r\n num: \u0027two\u0027\r\n}, {\r\n num: \u0027three\u0027\r\n}, {\r\n num: \u0027four\u0027\r\n}, {\r\n num: \u0027five\u0027\r\n}, {\r\n num: \u0027six\u0027\r\n}, {\r\n num: \u0027seven\u0027\r\n}, {\r\n num: \u0027eight\u0027\r\n}, {\r\n num: \u0027nine\u0027\r\n}, {\r\n num: \u0027ten\u0027\r\n}];","TestCases":[{"Name":"find value in the array each time","Code":"var ten = arr.find(n =\u003E n.num === \u0027ten\u0027);\r\nvar nine = arr.find(n =\u003E n.num ===\u0027nine\u0027);\r\nvar eight = arr.find(n =\u003E n.num ===\u0027eight\u0027);\r\nvar seven = arr.find(n =\u003E n.num ===\u0027seven\u0027);\r\nvar six = arr.find(n =\u003E n.num ===\u0027six\u0027);\r\nvar five = arr.find(n =\u003E n.num ===\u0027five\u0027);\r\nvar four = arr.find(n =\u003E n.num ===\u0027four\u0027);\r\nvar three = arr.find(n =\u003E n.num ===\u0027three\u0027);\r\nvar two = arr.find(n =\u003E n.num ===\u0027two\u0027);\r\nvar one = arr.find(n =\u003E n.num ===\u0027one\u0027);\r\n","IsDeferred":false},{"Name":"lookup the value ","Code":"var nums = arr.map(o =\u003E o.num);\r\n\r\nvar ten = nums.includes(\u0027ten\u0027);\r\nvar nine = nums.includes(\u0027nine\u0027);\r\nvar eight = nums.includes(\u0027eight\u0027);\r\nvar seven = nums.includes(\u0027seven\u0027);\r\nvar six = nums.includes(\u0027six\u0027);\r\nvar five = nums.includes(\u0027five\u0027);\r\nvar four = nums.includes(\u0027four\u0027);\r\nvar three = nums.includes(\u0027three\u0027);\r\nvar two = nums.includes(\u0027two\u0027);\r\nvar one = nums.includes(\u0027one\u0027);","IsDeferred":false}]}