UNPKG

729 BTypeScriptView Raw
1declare const _default: object;
2/**
3 Use the `{{array}}` helper to create an array to pass as an option to your
4 components.
5
6 ```handlebars
7 <MyComponent @people={{array
8 'Tom Dale'
9 'Yehuda Katz'
10 this.myOtherPerson}}
11 />
12 ```
13 or
14 ```handlebars
15 {{my-component people=(array
16 'Tom Dale'
17 'Yehuda Katz'
18 this.myOtherPerson)
19 }}
20 ```
21
22 Would result in an object such as:
23
24 ```js
25 ['Tom Dale', 'Yehuda Katz', this.get('myOtherPerson')]
26 ```
27
28 Where the 3rd item in the array is bound to updates of the `myOtherPerson` property.
29
30 @method array
31 @param {Array} options
32 @return {Array} Array
33 @public
34 */
35export default _default;
36//# sourceMappingURL=array.d.ts.map
\No newline at end of file