Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
// MODULES //
var getKeys = require( 'object-keys' ).shim();
var isObject = require( '@stdlib/utils/is-object' ); // TODO: plain object
var validators = require( './validators' );
// VARIABLES //
var KEYS = getKeys( validators );
// VALIDATE //
/**
* Validates function options.
*
* @private
* @param {Options} options - function options
'use strict';
// MODULES //
var getKeys = require( 'object-keys' ).shim();
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
var ctors = require( './ctors.js' );
// MAIN //
/**
* Revives a JSON-serialized error object.
*
* @param {string} key - key
* @param {*} value - value
* @returns {(*|Error|SyntaxError|URIError|EvalError|ReferenceError|RangeError|TypeError)} value or error object
*
* @example
* var str = '{"type":"TypeError","message":"beep"}';
* var err = JSON.parse( str, reviver );
return function(...args) {
// Calculate the new state.
const currentProps = merge(this.state, omitDefaults(this.props), this.boundActionCreators);
const newState = reducer(currentProps, ...args);
// Update the state.
this.setState(newState);
// If there are callbacks for the changed values, invoke them.
keys(newState).forEach(prop => {
const newValue = newState[prop];
const callbackName = toCallbackName(prop);
const cb = this.props[callbackName];
if (cb) cb(newValue);
});
};
});
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
var getKeys = require( 'object-keys' ).shim();
var invgamma = require( './../lib' );
console.log( getKeys( invgamma ) );
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
var getKeys = require( 'object-keys' ).shim();
var lognormal = require( './../lib' );
console.log( getKeys( lognormal ) );
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
var getKeys = require( 'object-keys' ).shim();
var hypergeometric = require( './../lib' );
console.log( getKeys( hypergeometric ) );
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
var getKeys = require( 'object-keys' ).shim();
var t = require( './../lib' );
console.log( getKeys( t ) );
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
var getKeys = require( 'object-keys' ).shim();
var binomial = require( './../lib' );
console.log( getKeys( binomial ) );
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
var getKeys = require( 'object-keys' ).shim();
var cosine = require( './../lib' );
console.log( getKeys( cosine ) );
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
var getKeys = require( 'object-keys' ).shim();
var gumbel = require( './../lib' );
console.log( getKeys( gumbel ) );