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 / src / deps / string / charCodeAt.js
Size: Mime:
"use strict";

const curry = require("../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
 */


module.exports = curry(2, (str, index) => str.charCodeAt(index));