Skip to content

Commit

Permalink
implementing fix from #75
Browse files Browse the repository at this point in the history
  • Loading branch information
allain committed Feb 13, 2015
1 parent d20237a commit e8a373d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dynamic-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
var fs = require('fs');

function objectValues(obj) {
if (typeof obj !== 'object') {
return [];
}

return Object.keys(obj).map(function (key) {
return obj[key];
});
Expand Down

0 comments on commit e8a373d

Please sign in to comment.