mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Add util.pitch.
This commit is contained in:
@@ -22,6 +22,19 @@ function Hash(properties) {
|
||||
|
||||
Hash.prototype = Object.create(null);
|
||||
|
||||
/**
|
||||
* A method that throws any error it receives.
|
||||
*
|
||||
* @memberOf util
|
||||
* @param {Object} [error] The error object.
|
||||
*/
|
||||
function pitch(error) {
|
||||
if (error != null) {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
'Hash': Hash
|
||||
'Hash': Hash,
|
||||
'pitch': pitch
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user