Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

updated lang.isObject to work in ES6 Fixes #62 #63

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const slice = Array.prototype.slice;
const hasOwnProperty = Object.prototype.hasOwnProperty;

function isObject(item: any): boolean {
return Object.prototype.toString.call(item) === '[object Object]';
return item === Object(item);
}

function copyArray(array: any[], inherited: boolean): any[] {
Expand Down