expect(Utils.isObject(new WeakSet())).toBe(true);
});
+ it('Verify hasOwnProp()', () => {
+ expect(Utils.hasOwnProp('test', '')).toBe(false);
+ expect(Utils.hasOwnProp(undefined, '')).toBe(false);
+ expect(Utils.hasOwnProp(null, '')).toBe(false);
+ expect(Utils.hasOwnProp([], '')).toBe(false);
+ expect(Utils.hasOwnProp({}, '')).toBe(false);
+ expect(Utils.hasOwnProp({ 1: 1 }, 1)).toBe(true);
+ expect(Utils.hasOwnProp({ 1: 1 }, 2)).toBe(false);
+ expect(Utils.hasOwnProp({ '1': '1' }, '1')).toBe(true);
+ expect(Utils.hasOwnProp({ '1': '1' }, '2')).toBe(false);
+ });
+
it('Verify isIterable()', () => {
expect(Utils.isIterable('')).toBe(true);
expect(Utils.isIterable(' ')).toBe(true);