lib/utils/ember.js
function unwrapBraceExpressions(dependentKeys) {
  const braceExpressionRegexp = /{.+}/g;

  const unwrappedExpressions = dependentKeys.map((key) => {
    if (typeof key !== 'string' || !braceExpressionRegexp.test(key)) return key;

    const braceExpansionPart = key.match(braceExpressionRegexp)[0];
    const prefix = key.replace(braceExpansionPart, '');
    const properties = braceExpansionPart
      .replace('{', '')
      .replace('}', '')
      .split(',');

    return properties.map(property => `${prefix}${property}`);
  });

  return unwrappedExpressions
    .reduce((acc, cur) => acc.concat(cur), []);
}
function unwrapBraceExpressions(dependentKeys) {
  const braceExpressionRegexp = /{.+}/g;

  const unwrappedExpressions = dependentKeys.map((key) => {
    if (typeof key !== 'string' || !braceExpressionRegexp.test(key)) return key;

    const braceExpansionPart = key.match(braceExpressionRegexp)[0];
    const prefix = key.replace(braceExpansionPart, '');
    const properties = braceExpansionPart
      .replace('{', '')
      .replace('}', '')
      .split(',');

    return properties.map(property => `${prefix}${property}`);
  });

  return unwrappedExpressions
    .reduce((acc, cur) => acc.concat(cur), []);
}
function unwrapBraceExpressions ( dependentKeys ) { const braceExpressionRegexp = / {.+} / g ; const unwrappedExpressions = dependentKeys . map ( ( key ) => { if ( typeof key !== 'string' || ! braceExpressionRegexp . test ( key ) ) return key ; const braceExpansionPart = key . match ( braceExpressionRegexp ) [ 0 ] ; const prefix = key . replace ( braceExpansionPart , '' ) ; const properties = braceExpansionPart . replace ( '{' , '' ) . replace ( '}' , '' ) . split ( ',' ) ; return properties . map ( property => ` ${ prefix } ${ property } ` ) ; } ) ; return unwrappedExpressions . reduce ( ( acc , cur ) => acc . concat ( cur ) , [ ] ) ; }
Unwraps brace expressions.

@param  {String[]} dependentKeys array of strings containing unprocessed dependent keys.
@return {String[]} Array of unwrapped dependent keys
Unwraps brace expressions .