app/data/ct.release/types.js
/**
         * Checks whether there are any copies of this type's name.
         * Will throw an error if you pass an invalid type name.
         * @param {string} type The name of a type to check.
         * @returns {boolean} Returns `true` if at least one copy exists in a room;
         * `false` otherwise.
         */
Checks whether there are any copies of this type's name.
Will throw an error if you pass an invalid type name.
@param {string} type The name of a type to check.
@returns {boolean} Returns `true` if at least one copy exists in a room;
`false` otherwise.
Checks whether there are any copies of this type ' s name . Will throw an error if you pass an invalid type name . @param { string } type The name of a type to check . @returns { boolean } Returns ` true ` if at least one copy exists in a room ; ` false ` otherwise .
exists(type) {
            if (!(type in ct.types.templates)) {
                throw new Error(`[ct.types] ct.types.exists: There is no such type ${type}.`);
            }
            return ct.types.list[type].length > 0;
        }
exists ( type ) { if ( ! ( type in ct . types . templates ) ) { throw new Error ( ` ${ type } ` ) ; } return ct . types . list [ type ] . length > 0 ; }
Checks whether there are any copies of this type's name.
Checks whether there are any copies of this type ' s name .