lib/plugins/js/babel-plugin-transform-flatten.js
function isPropertyOrKey(path) {
  return path.parentPath.get('key') === path || path.parentPath.get('property') === path;
}
function isPropertyOrKey(path) {
  return path.parentPath.get('key') === path || path.parentPath.get('property') === path;
}
function isPropertyOrKey ( path ) { return path . parentPath . get ( 'key' ) === path || path . parentPath . get ( 'property' ) === path ; }
Determine if 'path' is an key or property of another object
@param {NodePath} path
@returns {Boolean}
Determine if path is an key or property of another object