Skip to content

Commit

Permalink
[fix] asArray wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Nov 25, 2016
1 parent d37c5ec commit b395d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default class Utils {
*/
static asArray(object_or_array) {
if (! object_or_array) {
return {};
return [];
}
if (object_or_array.constructor === Array) {
return object_or_array;
Expand Down

0 comments on commit b395d0e

Please sign in to comment.