Merge pull request #8968 from fredj/Object.values

Use Object.values if available
This commit is contained in:
Frédéric Junod
2018-11-18 00:16:01 +01:00
committed by GitHub
2 changed files with 7 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ describe('ol.obj.getValues()', function() {
it('gets a list of property values from an object', function() {
expect(getValues({foo: 'bar', num: 42}).sort()).to.eql([42, 'bar']);
expect(getValues(null)).to.eql([]);
expect(getValues([])).to.eql([]);
});
});