condition.js 681 B

123456789101112131415161718192021
  1. "use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.default =
  2. validationCondition; /**
  3. * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  4. *
  5. * This source code is licensed under the MIT license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. *
  8. *
  9. */const toString = Object.prototype.toString;function validationCondition(option, validOption) {return option === null || option === undefined || toString.call(option) === toString.call(validOption);
  10. }