can-observe
Version:
Like can.Map, but without the .attr method.
28 lines (17 loc) • 589 B
Markdown
import { observe } from "can/everything";
const names = new observe.Array(['Alice', 'Bob']);
names.push('Chris');
console.log(names); //-> ['Alice', 'Bob', 'Chris']
```
## Events
`push` causes _length_ events to be fired.
`push` adds elements onto the end of an observe array.
```js