Git Product home page Git Product logo

ramdu's Issues

Documentation problem in PascalCase function

Describe the bug

A small error in the documentation of the library in the PascalCase function.

Check the example section in:

ramdu/src/pascalCase.js

Lines 5 to 15 in 1873845

/**
* Transform a string to PascalCase
*
* @function
* @param {String} str - Received string
* @returns {String}
*
* @example
* camelCase('My name is Earl'); //'MyNameIsEarl'
* camelCase('my-name-is-earl'); //'MyNameIsEarl'
*/

Expected behavior

/**
 * Transform a string to PascalCase
 *
 * @function
 * @param {String} str - Received string
 * @returns {String}
 *
 * @example
 * pascalCase('My name is Earl'); //'MyNameIsEarl'
 * pascalCase('my-name-is-earl'); //'MyNameIsEarl'
 */

Add new utils

  • - strPath
  • - strPathEq
  • - strPathSatisfies
  • - strPathNotSatisfies
  • - strPathOr
  • - strPathNotEq
  • - assocStrPath
  • - dissocStrPath
  • - hasStrPath
  • - lensStrPath
  • - isBetween: isBetween(1, 5, 4); // true
  • - renameKeys
  • - evolveKeys
  • - lengthIs
  • - reverseIncludes
  • - mapKeys
  • - snakeCase: snakeCase('Hi Buddy!'); 'hi_buddy'
  • - upperSnakeCase: upperSnakeCase('Hi Buddy!'); 'HI_BUDDY'
  • - xIfElse => Replace by calling ifElseAlways
  • - xCond => Replace by calling condAlways
  • - toggle: toggle('on', 'off', 'on'); // off
  • - reverseAppend
  • - reversePrepend
  • - whereArgs: whereArgs([lt(1), is(Number)])(2, 3); // true

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.