Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / chain-able-deps   js

Repository URL to install this package:

Version: 6.0.4 

/ src / string / charCodeAt.ts

import curry from '../fp/curry';

/**
 * @memberOf string
 * @name charCodeAt
 * @version 5.0.0 <- moved from util to string
 * @since 4.0.0
 *
 * @param {string} str string to getCharCodeAt
 * @return {number}
 *
 * @example charCodeAt('eh') //=> code for e
 */
export default curry(2, (str, index) => str.charCodeAt(index))