mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 12:01:40 +08:00
R=jacktfranklin@chromium.org DISABLE_THIRD_PARTY_CHECK=Adding sinon to deps Change-Id: If47962332a4d9a4b4f0edbe637bca4f9894545ba Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2562704 Auto-Submit: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
15 lines
391 B
JavaScript
15 lines
391 B
JavaScript
"use strict";
|
|
|
|
/**
|
|
* Returns `true` when the argument is an instance of Set, `false` otherwise
|
|
*
|
|
* @alias module:samsam.isSet
|
|
* @param {*} val - A value to examine
|
|
* @returns {boolean} Returns `true` when the argument is an instance of Set, `false` otherwise
|
|
*/
|
|
function isSet(val) {
|
|
return (typeof Set !== "undefined" && val instanceof Set) || false;
|
|
}
|
|
|
|
module.exports = isSet;
|