Skip to content

Commit

Permalink
Merge pull request #16453 from efx/fix-14741
Browse files Browse the repository at this point in the history
[DOCS beta] clarify documentation for makeArray
  • Loading branch information
rwjblue authored Apr 4, 2018
2 parents 45f477c + dfaa867 commit 5056999
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 5056999

Please sign in to comment.