Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/modules / ___dist / chain-able / lego / getAtSymbol.js
Size: Mime:
"use strict";

// aka invoke
function getForSymbol(symbolToGet, value) {
  let atSymbol = value[symbolToGet]; // @NOTE not sure if we really need this

  if (typeof atSymbol === 'function') {
    atSymbol = atSymbol();
  }

  if (typeof atSymbol === 'string') {
    return atSymbol;
  }

  return undefined;
}

module.exports = getForSymbol;