root / HServer / 00.Server / 00.Program / node_modules / is / README.md
이력 | 보기 | 이력해설 | 다운로드 (2.89 KB)
| 1 | 39 | HKM | # is |
|---|---|---|---|
| 2 | |||
| 3 | The definitive JavaScript type testing library |
||
| 4 | |||
| 5 | To be or not to be? This is the library! |
||
| 6 | |||
| 7 | [![browser support][1]][2] |
||
| 8 | |||
| 9 | ## Installation |
||
| 10 | |||
| 11 | As a node.js module |
||
| 12 | |||
| 13 | $ npm install is |
||
| 14 | |||
| 15 | As a component |
||
| 16 | |||
| 17 | $ component install enricomarino/is |
||
| 18 | |||
| 19 | ## API |
||
| 20 | |||
| 21 | ### general |
||
| 22 | |||
| 23 | - is.a (value, type) or is.type (value, type) |
||
| 24 | - is.defined (value) |
||
| 25 | - is.empty (value) |
||
| 26 | - is.equal (value, other) |
||
| 27 | - is.hosted (value, host) |
||
| 28 | - is.instance (value, constructor) |
||
| 29 | - is.instanceof (value, constructor) - deprecated, because in ES3 browsers, "instanceof" is a reserved word |
||
| 30 | - is.null (value) - deprecated, because in ES3 browsers, "null" is a reserved word |
||
| 31 | - is.undefined (value) |
||
| 32 | |||
| 33 | ### arguments |
||
| 34 | |||
| 35 | - is.arguments (value) |
||
| 36 | - is.arguments.empty (value) |
||
| 37 | |||
| 38 | ### array |
||
| 39 | |||
| 40 | - is.array (value) |
||
| 41 | - is.array.empty (value) |
||
| 42 | - is.arraylike (value) |
||
| 43 | |||
| 44 | ### boolean |
||
| 45 | |||
| 46 | - is.boolean (value) |
||
| 47 | - is.false (value) - deprecated, because in ES3 browsers, "false" is a reserved word |
||
| 48 | - is.true (value) - deprecated, because in ES3 browsers, "true" is a reserved word |
||
| 49 | |||
| 50 | ### date |
||
| 51 | |||
| 52 | - is.date (value) |
||
| 53 | |||
| 54 | ### element |
||
| 55 | |||
| 56 | - is.element (value) |
||
| 57 | |||
| 58 | ### error |
||
| 59 | |||
| 60 | - is.error (value) |
||
| 61 | |||
| 62 | ### function |
||
| 63 | |||
| 64 | - is.fn(value) |
||
| 65 | - is.function(value) - deprecated, because in ES3 browsers, "function" is a reserved word |
||
| 66 | |||
| 67 | ### number |
||
| 68 | |||
| 69 | - is.number (value) |
||
| 70 | - is.infinite (value) |
||
| 71 | - is.decimal (value) |
||
| 72 | - is.divisibleBy (value, n) |
||
| 73 | - is.int (value) |
||
| 74 | - is.maximum (value, others) |
||
| 75 | - is.minimum (value, others) |
||
| 76 | - is.nan (value) |
||
| 77 | - is.even (value) |
||
| 78 | - is.odd (value) |
||
| 79 | - is.ge (value, other) |
||
| 80 | - is.gt (value, other) |
||
| 81 | - is.le (value, other) |
||
| 82 | - is.lt (value, other) |
||
| 83 | - is.within (value, start, finish) |
||
| 84 | |||
| 85 | ### object |
||
| 86 | |||
| 87 | - is.object (value) |
||
| 88 | |||
| 89 | ### regexp |
||
| 90 | |||
| 91 | - is.regexp (value) |
||
| 92 | |||
| 93 | ### string |
||
| 94 | |||
| 95 | - is.string (value) |
||
| 96 | |||
| 97 | |||
| 98 | ## Contributors |
||
| 99 | |||
| 100 | - [Jordan Harband](https://github.com/ljharb) |
||
| 101 | |||
| 102 | ## License |
||
| 103 | |||
| 104 | (The MIT License) |
||
| 105 | |||
| 106 | Copyright (c) 2013 Enrico Marino |
||
| 107 | |||
| 108 | Permission is hereby granted, free of charge, to any person obtaining |
||
| 109 | a copy of this software and associated documentation files (the |
||
| 110 | 'Software'), to deal in the Software without restriction, including |
||
| 111 | without limitation the rights to use, copy, modify, merge, publish, |
||
| 112 | distribute, sublicense, and/or sell copies of the Software, and to |
||
| 113 | permit persons to whom the Software is furnished to do so, subject to |
||
| 114 | the following conditions: |
||
| 115 | |||
| 116 | The above copyright notice and this permission notice shall be |
||
| 117 | included in all copies or substantial portions of the Software. |
||
| 118 | |||
| 119 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
||
| 120 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||
| 121 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
||
| 122 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
||
| 123 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
||
| 124 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
||
| 125 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
||
| 126 | |||
| 127 | [1]: https://ci.testling.com/enricomarino/is.png |
||
| 128 | [2]: https://ci.testling.com/enricomarino/is |