function array(items) {
	  return datasetFromIteratorFn( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
	    return regeneratorRuntime.wrap(function _callee16$(_context16) {
	      while (1) {
	        switch (_context16.prev = _context16.next) {
	          case 0:
	            return _context16.abrupt("return", iteratorFromItems(items));

	          case 1:
	          case "end":
	            return _context16.stop();
	        }
	      }
	    }, _callee16);
	  })), items.length);
	}
Create a `Dataset` from an array of elements.

Create a Dataset from an array of objects:
```js
const a = tf.data.array([{'item': 1}, {'item': 2}, {'item': 3}]);
await a.forEachAsync(e => console.log(e));
```

Create a Dataset from an array of numbers:
```js
const a = tf.data.array([4, 5, 6]);
await a.forEachAsync(e => console.log(e));
```
@param items An array of elements that will be parsed as items in a dataset.

@doc {heading: 'Data', subheading: 'Creation', namespace: 'data'}