index.js
function (name, val) {
    if (typeof name === 'object') {
      return this.visit('set', name);
    }
    utils.set(this.snippets, name, val);
    return this;
  }
function (name, val) {
    if (typeof name === 'object') {
      return this.visit('set', name);
    }
    utils.set(this.snippets, name, val);
    return this;
  }
function ( name , val ) { if ( typeof name === 'object' ) { return this . visit ( 'set' , name ) ; } utils . set ( this . snippets , name , val ) ; return this ; }
Cache a snippet or arbitrary value in memory.

@param  {String} `name` The snippet name
@param  {any} `val`
@return {Object} Returns the `Snippet` instance for chaining
@name .set
@api public
Cache a snippet or arbitrary value in memory .