Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/lodash/_customOmitClone.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

16 lines (14 sloc)
475 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isPlainObject = require('./isPlainObject'); | |
/** | |
* Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain | |
* objects. | |
* | |
* @private | |
* @param {*} value The value to inspect. | |
* @param {string} key The key of the property to inspect. | |
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`. | |
*/ | |
function customOmitClone(value) { | |
return isPlainObject(value) ? undefined : value; | |
} | |
module.exports = customOmitClone; |