Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
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
14 changes: 6 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,19 +326,17 @@ export function truncates(password) {
}

/**
* Continues with the callback on the next tick.
* Continues with the callback after yielding to the event loop.
* @function
* @param {function(...[*])} callback Callback to execute
* @inner
*/
var nextTick =
typeof process !== "undefined" &&
process &&
typeof process.nextTick === "function"
? typeof setImmediate === "function"
? setImmediate
: process.nextTick
: setTimeout;
typeof setImmediate === "function"
? setImmediate
: typeof scheduler === "object" && typeof scheduler.postTask === "function"
? scheduler.postTask.bind(scheduler)
: setTimeout;

/** Calculates the byte length of a string encoded as UTF8. */
function utf8Length(string) {
Expand Down