Explain Shift Function In Javascript With Parameters