Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/punycode.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function error(type) {
* A generic `Array#map` utility function.
* @private
* @param {Array} array The array to iterate over.
* @param {Function} callback The function that gets called for every array
* @param {Function} fn The function that gets called for every array
* item.
* @returns {Array} A new array of values returned by the callback function.
*/
Expand All @@ -63,8 +63,8 @@ function map(array, fn) {
* A simple `Array#map`-like wrapper to work with domain name strings or email
* addresses.
* @private
* @param {String} domain The domain name or email address.
* @param {Function} callback The function that gets called for every
* @param {String} string The domain name or email address.
* @param {Function} fn The function that gets called for every
* character.
* @returns {Array} A new string of characters returned by the callback
* function.
Expand Down Expand Up @@ -127,7 +127,7 @@ function ucs2decode(string) {
* @see `punycode.ucs2.decode`
* @memberOf punycode.ucs2
* @name encode
* @param {Array} codePoints The array of numeric code points.
* @param {Array} array The array of numeric code points.
* @returns {String} The new Unicode string (UCS-2).
*/
const ucs2encode = array => String.fromCodePoint(...array);
Expand Down