mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 17:50:07 +08:00
This commit only adds a single package and all of its transitive dependencies. The github-linguist package will be used for counting lines of code as a baseline for databases we are analyzing.
17 lines
286 B
JavaScript
17 lines
286 B
JavaScript
'use strict'
|
|
|
|
// simple mutable assign
|
|
function assign () {
|
|
const args = [].slice.call(arguments).filter(i => i)
|
|
const dest = args.shift()
|
|
args.forEach(src => {
|
|
Object.keys(src).forEach(key => {
|
|
dest[key] = src[key]
|
|
})
|
|
})
|
|
|
|
return dest
|
|
}
|
|
|
|
module.exports = assign
|