# Assert > Base ndarray assertion utilities.
## Usage ```javascript var ns = require( '@stdlib/ndarray/base/assert' ); ``` #### ns Base ndarray assertion utilities. ```javascript var o = ns; // returns {...} ```
- [`isAllowedDataTypeCast( from, to, casting )`][@stdlib/ndarray/base/assert/is-allowed-data-type-cast]: determine whether an ndarray data type can be cast to another ndarray data type according to a specified casting mode. - [`isBufferLengthCompatibleShape( len, shape )`][@stdlib/ndarray/base/assert/is-buffer-length-compatible-shape]: determine if a buffer length is compatible with an array shape. - [`isBufferLengthCompatible( len, shape, strides, offset )`][@stdlib/ndarray/base/assert/is-buffer-length-compatible]: determine if a buffer length is compatible with ndarray meta data. - [`isCastingMode( value )`][@stdlib/ndarray/base/assert/is-casting-mode]: test if an input value is a supported ndarray casting mode. - [`isColumnMajorContiguous( shape, strides, offset )`][@stdlib/ndarray/base/assert/is-column-major-contiguous]: determine if an array is column-major contiguous. - [`isColumnMajor( strides )`][@stdlib/ndarray/base/assert/is-column-major]: given a stride array, determine whether an array is column-major. - [`isContiguous( shape, strides, offset )`][@stdlib/ndarray/base/assert/is-contiguous]: determine if an array is contiguous. - [`isDataType( value )`][@stdlib/ndarray/base/assert/is-data-type]: test if an input value is a supported ndarray data type. - [`isIndexMode( value )`][@stdlib/ndarray/base/assert/is-index-mode]: test if an input value is a supported ndarray index mode. - [`isOrder( value )`][@stdlib/ndarray/base/assert/is-order]: test if an input value is an ndarray order. - [`isRowMajorContiguous( shape, strides, offset )`][@stdlib/ndarray/base/assert/is-row-major-contiguous]: determine if an array is row-major contiguous. - [`isRowMajor( strides )`][@stdlib/ndarray/base/assert/is-row-major]: given a stride array, determine whether an array is row-major. - [`isSafeDataTypeCast( from, to )`][@stdlib/ndarray/base/assert/is-safe-data-type-cast]: determine whether an ndarray data type can be safely cast to another ndarray data type. - [`isSameKindDataTypeCast( from, to )`][@stdlib/ndarray/base/assert/is-same-kind-data-type-cast]: determine whether an ndarray data type can be safely cast to, or is of the same "kind" as, another ndarray data type. - [`isSingleSegmentCompatible( shape, strides, offset )`][@stdlib/ndarray/base/assert/is-single-segment-compatible]: determine if an array is compatible with a single memory segment.
## Examples ```javascript var objectKeys = require( '@stdlib/utils/keys' ); var ns = require( '@stdlib/ndarray/base/assert' ); console.log( objectKeys( ns ) ); ```