var.isNativeArray

bool isNativeArray() @property scope const nothrow @nogc pure @safe

True when this value is a compact native-array value (typedArray).

Note

isArray remains the exact test for boxed ARRAY values; the

two kinds are never conflated.

Examples

var boxed = var([1, 2, 3]);
assert(!boxed.isNativeArray);
var dense = typedArray([1, 2, 3]);
assert(dense.isNativeArray);