Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はモデルのコレクションを持っています。コレクションから最初の n 要素を削除する必要があります。
最初の n 要素 (.first(n)) を取得する方法はわかっていますが、削除できません。
コレクションをインデックス n の後のモデルにリセットできます。
collection.reset(collection.slice(n));