8
0
Просмотр исходного кода

Docs: Collection constructor now accepts iterable rather than an array.

Marek Lewandowski 5 лет назад
Родитель
Сommit
627577647c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/ckeditor5-utils/src/collection.js

+ 1 - 1
packages/ckeditor5-utils/src/collection.js

@@ -29,7 +29,7 @@ export default class Collection {
 	/**
 	 * Creates a new Collection instance.
 	 *
-	 * You can provide an array of initial items the collection will be created with:
+	 * You can provide an iterable of initial items the collection will be created with:
 	 *
 	 *		const collection = new Collection( [ { id: 'John' }, { id: 'Mike' } ] );
 	 *