---
title: array
framework: foundation
role: symbol
role_heading: Type Method
path: foundation/nsarray/array
---

# array

Creates and returns an empty array.

## Declaration

```occ
+ (instancetype) array;
```

## Return Value

Return Value An empty array.

## Discussion

Discussion This method is used by mutable subclasses of NSArray.

## See Also

### Related Documentation

- [Collections Programming Topics](apple-archive/documentation/Cocoa/Conceptual/Collections.md)

### Creating an Array

- [arrayWithArray:](foundation/nsarray/arraywitharray:.md)
- [arrayWithContentsOfFile:](foundation/nsarray/arraywithcontentsoffile:.md)
- [init(object:)](foundation/nsarray/init(object:).md)
- [arrayWithObjects:](foundation/nsarray/arraywithobjects:.md)
- [init(objects:count:)](foundation/nsarray/init(objects:count:)-7dct1.md)
