Write .has()
This commit is contained in:
parent
fba7363fa4
commit
3b69d25b8d
1 changed files with 6 additions and 0 deletions
|
@ -38,5 +38,11 @@ _.pad = function (string, length) {
|
||||||
return ' '.repeat(addToStart) + string + ' '.repeat(addToEnd)
|
return ' '.repeat(addToStart) + string + ' '.repeat(addToEnd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ----------------------------------------------------------------- has ---- */
|
||||||
|
|
||||||
|
_.has = function (obj, key) {
|
||||||
|
return !!obj[key]
|
||||||
|
}
|
||||||
|
|
||||||
// Do not write or modify code below this line.
|
// Do not write or modify code below this line.
|
||||||
module.exports = _
|
module.exports = _
|
||||||
|
|
Loading…
Reference in a new issue