Showing 3 of 3 total issues
Function Enum
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.Enum = (function () {
"use strict";
var Enum = function ( enums ) {
var i,
keys = [],
Function Enum
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Enum = function ( enums ) {
var i,
keys = [],
values = [],
length = 0;
Avoid deeply nested control flow statements. Open
Open
if ( values.lastIndexOf(enums[i]) !== -1 ) {
throw new TypeError('Enum Constructor Failure, you must pass a unique value for each key');
}