@kizmann/pico-js 0.3.23 → 0.3.24

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/pico-js",
3
- "version": "0.3.23",
3
+ "version": "0.3.24",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -726,8 +726,12 @@ export class Dom
726
726
  }
727
727
  }
728
728
 
729
- value(val)
729
+ value(val = undefined)
730
730
  {
731
+ if ( val === undefined ) {
732
+ return this.get(0).value;
733
+ }
734
+
731
735
  this.each((el) => el.value = val);
732
736
 
733
737
  return this;