data-provider-temporary
Version:
Library that helps with server-to-client synchronization of data
28 lines (16 loc) • 1.23 kB
JavaScript
;
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_MAP = '@@__IMMUTABLE_MAP__@@';var IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@';var test = function test(maybeOrderedMap) {return maybeOrderedMap && maybeOrderedMap[IS_MAP] && maybeOrderedMap[IS_ORDERED];};var print = function print(val,
_print,
indent,
opts,
colors) {return (
printImmutable(val, _print, indent, opts, colors, 'OrderedMap', true));};
module.exports = { print: print, test: test };