jQuery slice() method is very useful and give more flexibility than substring method of jQuery. It takes 2 parameter and both are optional. If none is specified then it sliced the whole. Important thing with this method is that it doesn't consider the last sliced item in its result.
Is not it? Happy coding!!!