| Total Complexity | 3 |
| Complexity/F | 1.5 |
| Lines of Code | 11 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | 'use strict'; |
||
| 2 | |||
| 3 | angular.module('game', ['ngAnimate', 'ui.router']) |
||
| 4 | .filter('keylength', function(){ |
||
| 5 | return function(input){ |
||
| 6 | if(!angular.isObject(input)){ |
||
| 7 | throw Error('Usage of non-objects with keylength filter!!'); |
||
| 8 | } |
||
| 9 | return Object.keys(input).length; |
||
| 10 | }; |
||
| 11 | }); |
||
| 12 |