{"ScriptPreparationCode":"var arr = [\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027sent\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n { status: [\u0027draft\u0027] },\r\n]","TestCases":[{"Name":"Original","Code":"for (const assignment of arr) {\r\n if (_.get(assignment, \u0027status[0]\u0027) !== \u0027sent\u0027) {\r\n hasInvalidStatus = true;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"Lodash","Code":"_.some(arr, a=\u003Ea.status[0]!== \u0027sent\u0027);","IsDeferred":false}]}