UNPKG

escomplex

Version:

Software complexity analysis of JavaScript-family abstract syntax trees.

17 lines (11 loc) 331 B
/*globals exports */ 'use strict'; exports.actualise = actualiseOperators; function actualiseOperators (properties) { return properties.map(function (property) { if (property && typeof property.identifier !== 'undefined') { return property; } return { identifier: property }; }); }