@@ -39,6 +39,7 @@ import dtype = require( './../../dtype' );
3939import dtypes = require( './../../dtypes' ) ;
4040import empty = require( './../../empty' ) ;
4141import emptyLike = require( './../../empty-like' ) ;
42+ import falses = require( './../../falses' ) ;
4243import filled = require( './../../filled' ) ;
4344import filledBy = require( './../../filled-by' ) ;
4445import Float16Array = require( './../../float16' ) ;
@@ -89,6 +90,7 @@ import sparsearray2iteratorRight = require( './../../to-sparse-iterator-right' )
8990import stridedarray2iterator = require( './../../to-strided-iterator' ) ;
9091import arrayview2iterator = require( './../../to-view-iterator' ) ;
9192import arrayview2iteratorRight = require( './../../to-view-iterator-right' ) ;
93+ import trues = require( './../../trues' ) ;
9294import typedarray = require( './../../typed' ) ;
9395import complexarray = require( './../../typed-complex' ) ;
9496import complexarrayCtors = require( './../../typed-complex-ctors' ) ;
@@ -586,6 +588,28 @@ interface Namespace {
586588 */
587589 emptyLike : typeof emptyLike ;
588590
591+ /**
592+ * Creates an array filled with false values and having a specified length.
593+ *
594+ * The function recognizes the following data types:
595+ *
596+ * - `bool`: boolean values
597+ * - `generic`: generic JavaScript values
598+ *
599+ * @param length - array length
600+ * @param dtype - data type (default: 'bool')
601+ * @returns filled array
602+ *
603+ * @example
604+ * var arr = ns.falses( 2 );
605+ * // returns <BooleanArray>[ false, false ]
606+ *
607+ * @example
608+ * var arr = ns.falses( 2, 'generic' );
609+ * // returns [ false, false ]
610+ */
611+ falses : typeof falses ;
612+
589613 /**
590614 * Returns a filled typed array view of an `ArrayBuffer`.
591615 *
@@ -1692,6 +1716,28 @@ interface Namespace {
16921716 */
16931717 arrayview2iteratorRight : typeof arrayview2iteratorRight ;
16941718
1719+ /**
1720+ * Creates an array filled with true values and having a specified length.
1721+ *
1722+ * The function recognizes the following data types:
1723+ *
1724+ * - `bool`: boolean values
1725+ * - `generic`: generic JavaScript values
1726+ *
1727+ * @param length - array length
1728+ * @param dtype - data type (default: 'bool')
1729+ * @returns filled array
1730+ *
1731+ * @example
1732+ * var arr = ns.trues( 2 );
1733+ * // returns <BooleanArray>[ true, true ]
1734+ *
1735+ * @example
1736+ * var arr = ns.trues( 2, 'generic' );
1737+ * // returns [ true, true ]
1738+ */
1739+ trues : typeof trues ;
1740+
16951741 /**
16961742 * Creates a typed array.
16971743 *
0 commit comments