index.js
function checkType(obj, keyName) {
  return obj && typeof obj === 'object' && Object.keys(obj).length === 1 &&
    obj.hasOwnProperty(keyName);
}
function checkType(obj, keyName) {
  return obj && typeof obj === 'object' && Object.keys(obj).length === 1 &&
    obj.hasOwnProperty(keyName);
}
function checkType ( obj , keyName ) { return obj && typeof obj === 'object' && Object . keys ( obj ) . length === 1 && obj . hasOwnProperty ( keyName ) ; }
Returns true if obj is a representation of a CloudFormation intrinsic, i.e. an object with a
single property at key keyName.
Returns true if obj is a representation of a CloudFormation intrinsic i . e . an object with a single property at key keyName .