Tabnine Logo For Javascript
camelCase
Code IndexAdd Tabnine to your IDE (free)

How to use
camelCase
function
in
lodash

Best JavaScript code snippets using lodash.camelCase(Showing top 15 results out of 315)

origin: cleverbeagle/pup

this.setState({ keyName: event.target.value }, () => {
   delay(() => {
    this.setState({ keyName: camelCase(event.target.value.trim()) });
   }, 300);
  });
origin: manaflair/mylittledom

function createInstance(type, props) {

  let elementName = type !== `div` ? `Term${upperFirst(camelCase(type))}` : `TermElement`;
  let ElementClass = TermElements[elementName];

  if (!ElementClass)
    throw new Error(`Invalid element type "${type}" (${elementName} is not amongst ${Object.keys(TermElements).join(`, `)})`);

  let instance = new ElementClass(props);

  Reflect.set(instance, EVENT_SYMBOL, new Map());
  Reflect.set(instance, SHORTCUT_SYMBOL, new Map());

  return instance;

}
origin: Radrw/strapi-pro

Object.keys(this.admin.models || []).reduce((acc, key) => {
   if (!this.admin.models[key].identity) {
    this.admin.models[key].identity = upperFirst(key);
   }

   if (!this.admin.models[key].globalId) {
    this.admin.models[key].globalId = upperFirst(camelCase(`admin-${key}`));
   }

   if (!this.admin.models[key].connection) {
    this.admin.models[key].connection = this.config.currentEnvironment.database.defaultConnection;
   }

   acc[key] = this.admin.models[key];

   return acc;
  }, {})
origin: rasshofer/cms

constructor(file, content, page, options) {
  super(file, options);

  this.index = parseInt(path.basename(this.file).replace(/^(\d+-)?(.*)$/i, '$1'), 10) || 0;
  this.visible = this.index > 0;
  this.invisible = !this.visible;
  this.identifier = path.relative(options.paths.content, this.file).split('/').map(partial => partial.replace(/^(\d+-)?(.*)$/i, '$2')).join('/');
  this.url = `${options.base}/${this.identifier}`;
  this.output = path.resolve(options.paths.output, this.identifier);

  if (content) {
   fs.readFileSync(content, 'utf8').split(options.separators.line).forEach((line) => {
    const partials = line.split(options.separators.values);
    const key = camelCase(partials.shift().trim());
    const value = partials.join(options.separators.values).trim();

    this[key] = value;
   });
  }
 }
origin: Radrw/strapi-pro

Object.keys(this.api || []).reduce((acc, key) => {
   for (let index in this.api[key].models) {
    if (!this.api[key].models[index].globalId) {
     this.api[key].models[index].globalId = upperFirst(camelCase(index));
    }

    if (!this.api[key].models[index].connection) {
     this.api[key].models[index].connection = this.config.currentEnvironment.database.defaultConnection;
    }

    if (!this.api[key].models[index].collectionName) {
     this.api[key].models[index].collectionName = (`${index}`).toLowerCase();
    }

    acc[index] = this.api[key].models[index];
   }
   return acc;
  }, {})
origin: ArcBlock/forge-js

transactions.map(x => camelCase(`send_${x}`))
origin: rasshofer/cms

setupGlobals(options) {
  this.visible = this.index > 0;
  this.invisible = !this.visible;
  this.url = `${options.base}/${this.identifier.length ? options.permalink(this.identifier) : ''}`;
  this.output = path.resolve(options.paths.output, this.identifier, `index.${options.extensions.output}`);

  this.children = [];
  this.hasChildren = false;

  this.files = [];
  this.hasFiles = false;

  Object.keys(files).forEach((property) => {
   this[property] = [];
   this[camelCase(`has-${property}`)] = false;
  });

  if (this.parent) {
   this.genesis = this.parent;
   while (this.genesis && this.genesis.parent) {
    this.genesis = this.genesis.parent;
   }
  } else {
   this.genesis = this;
  }
 }
origin: Radrw/strapi-pro

export default function createRoutes(store) {
 // Create reusable async injectors using getAsyncInjectors factory
 const { injectReducer, injectSagas } = getAsyncInjectors(store); // eslint-disable-line no-unused-vars

 // Inject app sagas
 const appSagas = tryRequire('App/sagas');
 if (appSagas) injectSagas(appSagas.default);

 return map(routes, (route, key) => ({
  path: key === '/' ? '' : key,
  name: route.name,
  getComponent(nextState, cb) {
   const reducer = tryRequire(`${route.container}/reducer`); // eslint-disable-line global-require
   const sagas = tryRequire(`${route.container}/sagas`); // eslint-disable-line global-require
   const component = tryRequire(`${route.container}/index`); // eslint-disable-line global-require

   process.nextTick(() => {
    if (reducer) injectReducer(camelCase(route.container), reducer.default);
    if (sagas) injectSagas(sagas.default);
    cb(null, component.default);
   });
  },
 }));
}
origin: rasshofer/cms

generateFiles(options) {
  Object.keys(files).forEach((property) => {
   const Type = files[property];

   glob.sync(`*.+(${options.extensions[property].join('|')})`, {
    cwd: path.dirname(this.file),
    absolute: true,
   }).sort(naturalSort).forEach((file) => {
    const matches = glob.sync(`${file}.+(${options.extensions.content.join('|')})`, {
     cwd: path.dirname(this.file),
     absolute: true,
    }).sort(naturalSort);

    const instance = new Type(file, matches[0], this, options);

    this[property].push(instance);
    this.files.push(instance);

    this[camelCase(`has-${property}`)] = true;
    this.hasFiles = true;
   });
  });

  return this;
 }
origin: rasshofer/cms

constructor(file, options, parent) {
  super(file, options, parent);

  fs.readFileSync(this.file, 'utf8').split(options.separators.line).forEach((line) => {
   const partials = line.split(options.separators.values);
   const key = camelCase(partials.shift().trim());
   const value = partials.join(options.separators.values).trim();

   this[key] = value;
  });

  this.index = parseInt(path.basename(path.dirname(this.file)).replace(/^(\d+-)?(.*)$/i, '$1'), 10) || 0;
  this.identifier = path.relative(options.paths.content, path.dirname(this.file)).split('/').map(partial => partial.replace(/^(\d+-)?(.*)$/i, '$2')).join('/');
  this.template = path.basename(this.file, path.extname(this.file));

  this.setupGlobals(options);
  this.setupHelpers(options);
  this.generateChildren(options);
  this.generateFiles(options);

  this.addVirtualPage = (props) => {
   const page = new VirtualPage(props, options, this);
   this.children.push(page);
   this.children.sort((a, b) => a.index - b.index);
   return page;
  };
 }
origin: bakjs/bak

const configKey = camelCase(plugin.configKey || plugin.name || (plugin.pkg && plugin.pkg.name) || '')
origin: Radrw/strapi-pro

this.plugins[key].models[index].globalId = upperFirst(camelCase(`${key}-${index}`));
origin: ArcBlock/forge-js

transactions.map(x => camelCase(`encode_${x}`))
origin: ArcBlock/forge-js

transactions.map(x => camelCase(`sign_${x}`))
origin: ArcBlock/forge-js

multiSignTxs.map(x => camelCase(`multi_sign_${x}`))
lodash(npm)camelCase

Most used lodash functions

  • LoDashStatic.map
    Creates an array of values by running each element in collection through iteratee. The iteratee is
  • LoDashStatic.isEmpty
    Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string
  • LoDashStatic.forEach
    Iterates over elements of collection invoking iteratee for each element. The iteratee is invoked wit
  • LoDashStatic.find
    Iterates over elements of collection, returning the first element predicate returns truthy for.
  • LoDashStatic.pick
    Creates an object composed of the picked `object` properties.
  • LoDashStatic.get,
  • LoDashStatic.isArray,
  • LoDashStatic.filter,
  • LoDashStatic.merge,
  • LoDashStatic.isString,
  • LoDashStatic.isFunction,
  • LoDashStatic.assign,
  • LoDashStatic.extend,
  • LoDashStatic.includes,
  • LoDashStatic.keys,
  • LoDashStatic.cloneDeep,
  • LoDashStatic.uniq,
  • LoDashStatic.isObject,
  • LoDashStatic.omit

Popular in JavaScript

  • handlebars
    Handlebars provides the power necessary to let you build semantic templates effectively with no frustration
  • mongodb
    The official MongoDB driver for Node.js
  • moment
    Parse, validate, manipulate, and display dates
  • commander
    the complete solution for node.js command-line programs
  • cheerio
    Tiny, fast, and elegant implementation of core jQuery designed specifically for the server
  • lodash
    Lodash modular utilities.
  • q
    A library for promises (CommonJS/Promises/A,B,D)
  • crypto
  • semver
    The semantic version parser used by npm.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now