/*globals require, module */
/*jshint globalstrict:true */

'use strict';

var check = require('check-types');

module.exports = function (object, defaultName) {
    if (check.isObject(object) && check.isUnemptyString(object.name)) {
        return object.name;
    }

    if (check.isUnemptyString(defaultName)) {
        return defaultName;
    }

    return '<anonymous>';
};

@@ -25,38 +25,8 @@
 e */
-%0A/*jshint globalstrict:true */
 %0A%0A'u

Remove unnecessary jshint option.