forked from public/fvtt-cthulhu-eternal
Initial import with skill sheet working
This commit is contained in:
17
node_modules/abstract-level/lib/common.js
generated
vendored
Normal file
17
node_modules/abstract-level/lib/common.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict'
|
||||
|
||||
exports.getCallback = function (options, callback) {
|
||||
return typeof options === 'function' ? options : callback
|
||||
}
|
||||
|
||||
exports.getOptions = function (options, def) {
|
||||
if (typeof options === 'object' && options !== null) {
|
||||
return options
|
||||
}
|
||||
|
||||
if (def !== undefined) {
|
||||
return def
|
||||
}
|
||||
|
||||
return {}
|
||||
}
|
||||
Reference in New Issue
Block a user