Commit 50d74012 authored by Nathan Woltman's avatar Nathan Woltman Committed by Bert Belder
Browse files

path: refactor normalizeArray()

The normalizeArray() function now avoids using the slow Array#splice()
method to improve performance and now also filters out empty path parts.

Code that pre-filtered empty parts has been removed.

PR-URL: https://github.com/joyent/node/pull/8724


Reviewed-by: default avatarTrevor Norris <trev.norris@gmail.com>
parent 9483bfe6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment