function getName(obj) {
  return String(!obj || obj === true ? obj : obj.name || '<anonymous>')
}
Determine the name of an object.

@memberof Shim.prototype
@param {*} obj - The object to get a name for.
@returns {string} The name of the object if it has one, else `<anonymous>`.