(value, size, type)
| 497 | } |
| 498 | |
| 499 | function checkFloat(value, size, type) { |
| 500 | if (typeof value === "undefined" || value === null) { |
| 501 | return; |
| 502 | } |
| 503 | if (!isNumeric(value)) { |
| 504 | throw Error("Tried to create " + type + " but data ( " + value + " ) was not a valid float."); |
| 505 | } |
| 506 | } |
| 507 | |
| 508 | function hasFlag(fields, flag) { |
| 509 | return (fields.indexOf(flag) > -1); |
no test coverage detected