innovationDriveApp/node_modules/pretty-format/build-es5/plugins/ImmutableList.js
2018-07-08 19:21:40 +10:00

26 lines
No EOL
1.1 KiB
JavaScript

'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_LIST = '@@__IMMUTABLE_LIST__@@';var test = function test(maybeList) {return !!(maybeList && maybeList[IS_LIST]);};var print = function print(val, _print, indent,
opts,
colors) {return (
printImmutable(val, _print, indent, opts, colors, 'List', false));};
module.exports = { print: print, test: test };