This is the 10th implementation of padLeft—is there anyway to reuse one of the other 9?

apps/camera/js/camera.js
apps/email/shared/js/media/video_player.js
apps/gallery/js/frame_scripts.js
apps/system/camera/js/camera.js
apps/system/js/operator_variant/operator_variant.js
build_stage/email/shared/js/media/media_utils.js
build_stage/email/shared/js/media/video_player.js
shared/js/media/media_utils.js
shared/js/media/video_player.js