function isProperty(node) {
  if (node.type !== 'Property') {
    return false
  }
  return !node.parent || node.parent.type === 'ObjectExpression'
}
Checks whether the given node is Property.
@param {Property | SpreadElement | AssignmentProperty} node
@returns {node is Property}