mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
return true/false from EJSON.isBinary
This commit is contained in:
committed by
Nick Martin
parent
bd55683898
commit
d53799d7a5
@@ -211,8 +211,8 @@ EJSON.parse = function (item) {
|
||||
};
|
||||
|
||||
EJSON.isBinary = function (obj) {
|
||||
return (typeof Uint8Array !== 'undefined' && obj instanceof Uint8Array) ||
|
||||
(obj && obj.$Uint8ArrayPolyfill);
|
||||
return !!((typeof Uint8Array !== 'undefined' && obj instanceof Uint8Array) ||
|
||||
(obj && obj.$Uint8ArrayPolyfill));
|
||||
};
|
||||
|
||||
EJSON.equals = function (a, b, options) {
|
||||
|
||||
Reference in New Issue
Block a user