---
title: ndArray
framework: coreai
role: symbol
role_heading: Instance Property
path: coreai/inferencevalue/ndarray
---

# ndArray

The array that the value wraps.

## Declaration

```swift
var ndArray: NDArray? { get }
```

## Discussion

Discussion This property is nil when the value contains an image instead of an array. Accessing this property consumes the value and transfers ownership of the array to the caller.

## See Also

### Inspecting a value

- [kind](coreai/inferencevalue/kind-swift.property.md)
