UNPKG

oolong

Version:

Utilities for objects. Simple, tasteful and plentiful. Supports inherited properties.

12 lines (9 loc) 324 B
var O = require("../..") describe("Oolong.values", function() { it("must return all enumerable values of an object", function() { O.values({a: 1, b: 2}).must.eql([1, 2]) }) it("must return inherited enumerable values of an object", function() { O.values(Object.create({a: 1, b: 2})).must.eql([1, 2]) }) })