MCPcopy Create free account
hub / github.com/BridgeAR/safe-stable-stringify / getDeterministicOption

Function getDeterministicOption

index.js:141–150  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

139}
140
141function getDeterministicOption (options) {
142 let value
143 if (hasOwnProperty.call(options, 'deterministic')) {
144 value = options.deterministic
145 if (typeof value !== 'boolean' && typeof value !== 'function') {
146 throw new TypeError('The "deterministic" argument must be of type boolean or comparator function')
147 }
148 }
149 return value === undefined ? true : value
150}
151
152function getBigIntOption (options) {
153 let value

Callers 1

configureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected