README.md (2016B)
1 <!-- 2 3 @license Apache-2.0 4 5 Copyright (c) 2018 The Stdlib Authors. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 19 --> 20 21 # Constants 22 23 > Array constants. 24 25 <section class="usage"> 26 27 ## Usage 28 29 ```javascript 30 var constants = require( '@stdlib/constants/array' ); 31 ``` 32 33 #### constants 34 35 Array constants. 36 37 ```javascript 38 var ns = constants; 39 // returns {...} 40 ``` 41 42 <!-- <toc pattern="*"> --> 43 44 <div class="namespace-toc"> 45 46 - <span class="signature">[`MAX_ARRAY_LENGTH`][@stdlib/constants/array/max-array-length]</span><span class="delimiter">: </span><span class="description">maximum length for a generic array.</span> 47 - <span class="signature">[`MAX_TYPED_ARRAY_LENGTH`][@stdlib/constants/array/max-typed-array-length]</span><span class="delimiter">: </span><span class="description">maximum length for a typed array.</span> 48 49 </div> 50 51 <!-- </toc> --> 52 53 </section> 54 55 <!-- /.usage --> 56 57 <section class="examples"> 58 59 ## Examples 60 61 <!-- TODO: better examples --> 62 63 <!-- eslint no-undef: "error" --> 64 65 ```javascript 66 var objectKeys = require( '@stdlib/utils/keys' ); 67 var constants = require( '@stdlib/constants/array' ); 68 69 console.log( objectKeys( constants ) ); 70 ``` 71 72 </section> 73 74 <!-- /.examples --> 75 76 <section class="links"> 77 78 <!-- <toc-links> --> 79 80 [@stdlib/constants/array/max-array-length]: https://www.npmjs.com/package/@stdlib/constants/tree/main/array/max-array-length 81 82 [@stdlib/constants/array/max-typed-array-length]: https://www.npmjs.com/package/@stdlib/constants/tree/main/array/max-typed-array-length 83 84 <!-- </toc-links> --> 85 86 </section> 87 88 <!-- /.links -->