Skip to content

Commit

Permalink
clarify documentation for makeArray
Browse files Browse the repository at this point in the history
Resolve #14741.
  • Loading branch information
eflanagan0 committed Apr 4, 2018
1 parent 0ec7f45 commit dfaa867
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ember-utils/lib/make-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { isArray } = Array;
/**
Forces the passed object to be part of an array. If the object is already
an array, it will return the object. Otherwise, it will add the object to
an array. If obj is `null` or `undefined`, it will return an empty array.
an array. If object is `null` or `undefined`, it will return an empty array.
```javascript
import { makeArray } from '@ember/array';
Expand All @@ -17,9 +17,9 @@ const { isArray } = Array;
makeArray('lindsay'); // ['lindsay']
makeArray([1, 2, 42]); // [1, 2, 42]
let controller = ArrayProxy.create({ content: [] });
let proxy = ArrayProxy.create({ content: [] });
makeArray(controller) === controller; // true
makeArray(proxy) === proxy; // false
```
@method makeArray
Expand Down

0 comments on commit dfaa867

Please sign in to comment.