Files
old-slucajna-televizija/web/node_modules/pretty-format/build-es5/plugins/ImmutableSet.js

28 lines
1.2 KiB
JavaScript
Raw Normal View History

2017-10-16 11:19:46 +02:00
'use strict';
var printImmutable = require('./lib/printImmutable'); /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/var IS_SET = '@@__IMMUTABLE_SET__@@';var IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@';var test = function test(maybeSet) {return !!(maybeSet && maybeSet[IS_SET] && !maybeSet[IS_ORDERED]);};var print = function print(val,
_print,
indent,
opts,
colors) {return (
printImmutable(val, _print, indent, opts, colors, 'Set', false));};
module.exports = { print: print, test: test };