We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efa7339 commit a50a050Copy full SHA for a50a050
lib/document.js
@@ -487,10 +487,11 @@ Document.prototype.update = function update() {
487
* @param {Any} val the value to set
488
* @param {Schema|String|Number|Buffer|*} [type] optionally specify a type for "on-the-fly" attributes
489
* @param {Object} [options] optionally specify options that modify the behavior of the set
490
+ * @
491
* @api public
492
*/
493
-Document.prototype.$set = function(path, val, type, options) {
494
+Document.prototype.$set = function $set(path, val, type, options) {
495
if (type && utils.getFunctionName(type.constructor) === 'Object') {
496
options = type;
497
type = undefined;
0 commit comments