{"action":"closed","issue":{"url":"https://api.github.com/repos/adrai/enum/issues/6","labels_url":"https://api.github.com/repos/adrai/enum/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/adrai/enum/issues/6/comments","events_url":"https://api.github.com/repos/adrai/enum/issues/6/events","html_url":"https://github.com/adrai/enum/issues/6","id":57655749,"number":6,"title":"Feature request: case (in)sensitivity","user":{"login":"jasonkarns","id":119972,"avatar_url":"https://avatars.githubusercontent.com/u/119972?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonkarns","html_url":"https://github.com/jasonkarns","followers_url":"https://api.github.com/users/jasonkarns/followers","following_url":"https://api.github.com/users/jasonkarns/following{/other_user}","gists_url":"https://api.github.com/users/jasonkarns/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonkarns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonkarns/subscriptions","organizations_url":"https://api.github.com/users/jasonkarns/orgs","repos_url":"https://api.github.com/users/jasonkarns/repos","events_url":"https://api.github.com/users/jasonkarns/events{/privacy}","received_events_url":"https://api.github.com/users/jasonkarns/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-13T21:22:13Z","updated_at":"2015-02-22T11:13:31Z","closed_at":"2015-02-22T11:13:31Z","body":"Would you be receptive to adding case insensitivity as an option?\r\n\r\nI'm thinking something along the lines of:\r\n\r\n``` javascript\r\nvar myEnum = new Enum(['One', 'Two'], { caseSensitive: false }); // caseSensitive defaults to true\r\n\r\nmyEnum.get('one'); // => myEnum.One\r\nmyEnum.get('ONE'); // => myEnum.One\r\nmyEnum.Two.is('two'); // => true\r\n```\r\n\r\nI would expect that the canonical casing is taken from the constructor argument. So the property accessor (`One` and `Two` above) is only available as defined during instantiation. But the `get`, `is`, and `has` lookup methods would be case insensitive (or sensitive) as defined by the provided option (defaulting to sensitive)."}}