jc
11/22/2022, 5:53 AMjava.lang.NullPointerException at coldfusion.compiler.SemanticAnalyzer.createInitializerStatementforColon
arr = [
{ name:"John" },
{ name:"Jane" }
];
value = arr.find( a => a.name == "John" ) ? arr.filter( a => a.name == "John" )[1] : {};
writeDump( value );
It will not error if changed to the following, so it appears the issue is introduced with the brackets.
value = arr.find( a => a.name == "John" ) ? arr.filter( a => a.name == "John" ).first() : {};